PHP Code:
function setTimer(temp.x) {
if (temp.x <= 0) {
return;
}
cancelevents("Timeout");
scheduleevent(temp.x, "Timeout", null);
}
And probably some other magic.
I never use timeouts because I like to pass state to the function via.
scheduleevent instead of relying on
this. variables like you need to in timeouts.