NPC Code:this.active=1-this.active
this.active=1-this.active
NPC Code:if (weaponfired) this.active=(this.active==0);
if (weaponfired) this.active=(this.active==0);