View Single Post
  #5  
Old 03-22-2009, 06:21 AM
Novice Novice is offline
Developer
Join Date: Dec 2008
Posts: 90
Novice is an unknown quantity at this point
Send a message via MSN to Novice
Quote:
Originally Posted by cbk1994 View Post
You need to trigger the serverside portion of a script so it can change the flag.

The command you'll use is called "triggerserver". There's an explanation on this page:

http://graal.net/index.php/Creation/Dev/Script/Client

(look for the 'triggerserver' command)
PHP Code:
triggerServer(type,name,param0,param1,param2,...); 
"name" refers to the name of the weapon. "type" is pretty much "weapon" or "gui", either work for anything.

Alternatively you can use triggerAction(), which is almost the same.
PHP Code:
triggerAction(x,y,name,param0,param1,param2,...); 
"name" refers to the part after "onAction" on the serverside, so if you used "HealthSubtract" then the trigger will be sent to "onActionHealthSubtract" in the serverside. "x" and "y" are usually 0.
Reply With Quote