I am trying to get a clientside triggeraction to place an npc serverside:
My question is, how do I access the x and y, sent from the triggeraction, on the server, in the putnpc2 command?
Here is the clientside part
NPC Code:
if (actionplant)
{
putnpc2 x,y,
{
setimage ion.gif;
message I am an ion;
}
}
#//CLIENTSIDE
if (weaponfired)
{
//set animation or sprite
freezeplayer .1;
playersprite=33;
// perform an action in front of the player
triggeraction playerx+1.5+vecx(playerdir)*2,playery+2+vecy(playe rdir)*2,
plant,;
}
Any help would be appreciated.