Consider this example:
PHP Code:
function onCreated() {
setshape(1,32,32);
}
function onActionTest() {
this.chat = random(0,100);
}
//#CLIENTSIDE
function onCreated() {
setTimer(0.05);
}
function onTimeout() {
triggeraction(this.x,this.y,"test");
setTimer(1);
}