Quote:
Originally Posted by Jiroxys7
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.x, player.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.