View Single Post
  #1  
Old 08-24-2004, 10:09 PM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
triggeraction x y and putnpc2 x y

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.
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote