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(0, 0, "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
