Quote:
NPC Code:
putexplosion2 3,4,newx2-.75,newy2-.75;
hideimg 400;
hitobjects 2,mousex,mousey;
hitobjects 2,mousex-.25,mousey-.25;
hitobjects 2,mousex+.25,mousey-.25;
hitobjects 2,mousex-.25,mousey+.25;
hideimg 300;
timeout=.05;
replaceani idle,idle;
setani idle,;
enabledefmovement;
hideimg 302;
sleep 3;
hideimg 301;
}
|
maybe because that portion of your script is not inside an event block?
EDIT: oh you fixed it, nvm. it seems that you're using
Quote:
NPC Code:
strequals(#w,Lightning 2)
|
in the portion that shoots the lightning as opposed to the "isweapon"s you used in the other portions (i'm assuming the name of this wepaon is "Lightning 2" of course it doesn't have to be). Are you sure the weapon name is correct? Are you doing this offline or online?