Jump to content

Recommended Posts

Posted

This is probably a very, very noob question, but...

 

I'm trying to update a quest once the player kills an enemy, but can't figure out how to accomplish this. Is there an easy way to trigger a script on creature death?

Posted

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.

Posted
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.
  • Recently Browsing   0 members

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