Thread: Triggeraction
View Single Post
  #2  
Old 05-15-2007, 07:27 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
triggeraction(x, y, action, name, param0, param1, etc..);

if x and y is NULL/0, it will send a trigger to the action in the wnpc called 'name' else it will trigger any objects at x and y, then call the action on the object

PHP Code:
function onActionServerside()
{
  if (
parmas[0] == "foo")
    echo(
"bar");
}
//#CLIENTSIDE
function onCreated()
  
triggeraction(00"Serverside"this.name"foo"); 
there are other functions like triggeraction but specified to serverside or clientside

triggerserver(gui, this.name, param0, param1, etc..);
triggerclient(gui, this.name, param0, param1, etc..);

those functions is often used to get from client to server or vice versa

I hope this helps alittle
__________________

Last edited by Chompy; 05-15-2007 at 08:24 PM..
Reply With Quote