Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-18-2013, 09:35 PM
greggiles greggiles is offline
Registered User
greggiles's Avatar
Join Date: Sep 2007
Posts: 149
greggiles has a spectacular aura about
createing temp NPC at mouse location

So I'm trying to figure out why the object is not creating at the mouse's x, y.
I tried mousescreenx,y and mousex,y but it doesn't place the NPC.

It works fine though placing it at player.x and player.y

What is in the CLIENTSIDE:
PHP Code:
   player.chat "Dropped Block!";
   
triggerserver("weapon"this.name"block"); 
What is in the SERVERSIDE:
PHP Code:
 if (params[0] == "block"){
  
temp.npc this.level.putNPC2(mousexmousey"");
  
temp.npc.join("block");

NOTE: I just realized I spelled 'Creating' wrong in the title lol
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:29 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.