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


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 08:47 PM.


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