Jump to content

Having a script run when a creature dies


Mutantpizza

Recommended Posts

I don't know the answer to this question, BUT I know where to look because I've seen it before :laugh:

 

Check the way the creatures/NPCs in the Fade Nightmares for the Companions are programmed/scripted. If I remember correctly, they are identified as being in a 'group'. When the 'group' is killed, the condition is updated, causing the script to run. A group can be composed of one.

 

I haven't tried it so I don't know, but that is where I would go for an example of how to get it to work.

Link to comment
Share on other sites

In the area script you need to add the EVENT_TYPE_TEAM_DESTROYED. Give the creature(s) and team in your constants header. Then set the team destroyed event to flag the creature has been killed. I would post a sample script but i cant because i have to use my cell phone to post. If you would like me to email you a sample message me your email address and i'll be glad to email it to you.
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...