iamyourdad Posted July 25, 2011 Share Posted July 25, 2011 how would a script be for when you get to a part a module a npc spawns? Link to comment Share on other sites More sharing options...
newbiemodder Posted July 25, 2011 Share Posted July 25, 2011 a creature spawn script, as well as many other scripting questions, can be found in the above Scripting Tutorial section. Link to comment Share on other sites More sharing options...
iamyourdad Posted July 25, 2011 Author Share Posted July 25, 2011 yes but how do get the script to fire when a npc dies? Link to comment Share on other sites More sharing options...
Fastmaniac Posted July 25, 2011 Share Posted July 25, 2011 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. Link to comment Share on other sites More sharing options...
iamyourdad Posted July 25, 2011 Author Share Posted July 25, 2011 thanks Link to comment Share on other sites More sharing options...
Gorgod Posted July 25, 2011 Share Posted July 25, 2011 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. Link to comment Share on other sites More sharing options...
Qui-Gon Glenn Posted July 27, 2011 Share Posted July 27, 2011 Also, simply search our forums here for "OnDeath" or "GetIsCreatureDead" and you will find what you are looking for. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.