NPC Code:
//#CLIENTSIDE
function onCreated() {
this.state = 0;
}
function onWeaponFired() {
setTimer(.2);
}
function onTimeout() {
showimg(200,light4.png,playerx+0.7-imgwidth(light4.png)/32,playery+1-imgheight(light4.png)/32);
changeimgvis(200,3);
changeimgcolors(200,1,.5,0,.9999);
drawoverplayer();
this.state=(this.state+1)%3;
changeimgzoom(200,1+.02*this.state);
setTimer(.2);
}
Doesnt work. At all, and I have NO idea why. It's meant to display a light effect over the player, but it's being a butch and not working. Could someone please explain to me why, so i dont give myself an aneurysm from the thinking.