Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

npc spawn

Page: 1 of 1
 iamyourdad
07-25-2011, 9:20 AM
#1
how would a script be for when you get to a part a module a npc spawns?
 newbiemodder
07-25-2011, 9:36 AM
#2
a creature spawn script, as well as many other scripting questions, can be found in the above Scripting Tutorial section.
 iamyourdad
07-25-2011, 9:52 AM
#3
yes but how do get the script to fire when a npc dies?
 Fastmaniac
07-25-2011, 9:57 AM
#4
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.
 iamyourdad
07-25-2011, 10:28 AM
#5
thanks
 Gorgod
07-25-2011, 2:00 PM
#6
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.
 Qui-Gon Glenn
07-27-2011, 2:10 AM
#7
Also, simply search our forums here for "OnDeath" or "GetIsCreatureDead" and you will find what you are looking for.
Page: 1 of 1