Jump to content
Sign in to follow this  
KevlarBR

Multiple objectives linked on 1 trigger?

Recommended Posts

Ok, I'm new to editing missions, I'm REALLY trying to understand scripting and all, but it's way too hard. Although I have improved quite a bit since I started doing it, I still cant' figure out the harder stuff.

My question (first of many) is: how can I make 1 objective be completed after 2 AI are killed. I have 2 officers, and one of the objective is to have them both assassinated.

I have figured out how to make one of them dieing being an objective with the condition being "not alive officer1" (they are named officer1 and officer2, respectivelly). But this way, I have 2 objectives for 2 kills.

My question is: how can I make the objective being completed after both are killed?

Thank you in advance!

- Kev

Share this post


Link to post
Share on other sites

If you want to have some feedback for the player if one of the two targets gets hit, use two triggers. Set up each trigger with the condition:

not alive officer1

and

for second trigger:

not alive officer2

in On activation of trigger 1 put:

kill1 = true

and for second one:

kill2 = true

Now create a third trigger and have this in the condition:

kill1 AND kill2

and attach the things you want to happen to that trigger (text output, sound, whatever)

The trigger will only fire if both targets are killed.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×