Quote:
Originally Posted by Gunderak
ooh lol i thought triggeraction was triggering an action defined on creation rofl
|
It's:
PHP Code:
triggeraction(x, y, "Command", parameters);
Which is invoking "onActionCommand" serverside, you can also use this to pass parameters to the server such as:
PHP Code:
function onActionCommand(temp.param1, temp.param2){
echo(temp.param1 SPC temp.param2);
}
//#CLIENTSIDE
function onPlayerTouchsMe(){
triggeraction(this.x + 1, this.y + 1, "Command", "hello", "world");
}
Will echo "hello world" to RC.