[QUOTE=BlueMelon;1724944]Consider this example:
Thanks for the tip. Here's what I got
PHP Code:
function onCreated() {
setshape(1,32,32);
setImg("block.png");
}
function onActionTest(){
destroy();
}
//#CLIENTSIDE
function onCreated(){
dontblock();
setTimer(1);
if (player.x in |this.x, this.x + 2| && player.y in |this.y, this.y + 2|) {
player.chat = "HIT";}
}
function onTimeOut(){
triggeraction(this.x,this.y,"Test");
}
PROBLEM:
It sometimes works, and sometimes doesn't. It seems to only destroy half the time... Anything I can modify to make it more reliable?