NPC Code:
if (created)
setshape 1,32,32;
if (playertouchsme)
toweapons Torch;
if (weaponfired) {
this.active=1-this.active;
if (this.active==1) {
replaceani idle,torch_idle;
replaceani walk,torch_walk;
}
else {
replaceani torch_idle,idle;
replaceani torch_walk,walk;
}
}