So in my mod I want there to be a point where NPC1 fires his weapon at the direction of NPC2, then NPC2's head explodes.
I'm aware of the fireweapon function but how do I set up the direction NPC1's weapons is facing?
After that how do I make NPC2's head explode?
Going by the script logic in my head I assume it'd be something like this:
npc1weaponfire script line
weaponfirecounter set to 1
if weaponfirecounter == 1
[insert function that makes body part explode]npc2
endif
Thanks in advance!