For some inane reason, I cannot get my script to disable when I fire the weapon again...
NPC Code:
if (weaponfired && !timeout) {
freezeplayer .05;
//triggeraction playerx+1.5+vecx(playerdir)*2,playery+1.75+vecy(pl ayerdir)*2,chat,;
set client.chat;
timeout = 0.05;
} else if (weaponfired && timeout) {
for (this.i=0; this.i<10000; this.i++) {
hideimg this.i-1;
}
unset client.chat;
}
I've also tried using the flag I have it set, but nothing seems to work :/
I've probably done something wrong, but I can't understand what it coud be