View Single Post
  #9  
Old 07-09-2011, 05:17 PM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
Quote:
Originally Posted by Gunderak View Post
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.
Reply With Quote