how would a script be for when you get to a part a module a npc spawns?
a creature spawn script, as well as many other scripting questions, can be found in the above Scripting Tutorial section.
yes but how do get the script to fire when a npc dies?
Every Creature has a script built in called OnDeath. It is specified in the .utc file of the creature. I've never tried it but it is worth a try.
Every Creature has a script built in called OnDeath. It is specified in the .utc file of the creature. I've never tried it but it is worth a try.
I'm using the OnDeath script quite a bit in Recruit Nara. Just replace the NPC's original OnDeath script in the .utc file with the script that you just wrote.
Also, simply search our forums here for "OnDeath" or "GetIsCreatureDead" and you will find what you are looking for.