View Single Post
  #7  
Old 06-03-2010, 01:18 AM
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 Jiroxys7 View Post
urg. i tried this today. i cant even get it to to hit the player that has it.
What am i doing wrong in this?

PHP Code:
//#CLIENTSIDE
function onCreated(){
  
setTimer(0.05);
}

function 
onTimeout(){
  
triggeraction(player.xplayer.y"Test");
  
setTimer(0.05);
}

function 
onActionTest(){
  
player.chat "It works!";

The Triggeraction function requires an extra Parameter even if you do not intend one to be sent (so just use "" or NULL), this is also intended to be something received by other players on the given coordinate, not sure if it can be picked up by yourself.

Also probably not the best idea to be doing this on a constant timeout beyond testing.
Reply With Quote