Actually decided to take it off a timer, and put it in x, y coordinates, to eliminate the use of timers. I have this, but now its not setting, any obvious reason why?
PHP Code:
//#CLIENTSIDE
function onPlayerEnters(){
setColorEffect(1, 1, 1, 1);
this.mode = 1;
}
function onPlayerTouchsMe(){
dontblocklocal();
drawoverplayer();
setTimer(.05);
}
function onTimeout(){
if (player.x+1.5 in |17, 25| && player.y+2 in |13, 37|){
setColorEffect(1, 1, 1, 0.7);
this.mode = 1;
}else{
setColorEffect(1, 1, 1, 1);
this.mode = 1;
}
setTimer(.05);
}