View Single Post
  #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