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!";
}