Quote:
Originally Posted by cbk1994
|
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.