Jump to content
Sign in to follow this  
ChrisFox

End mission  when 3 choppers destroyed?

Recommended Posts

Hello,

I've searched this forum over and over again but strangely I did not found the answer I expected to find, though I'm pretty sure my question must have been asked before... :

I'm working on a mission which looks like Air Cavalry. I've also got 3 Littlebird's. What I want in the mission is when all three Littlebirds (MH6's) are destroyed, the mission ends (with "mission failed").

Now, I know this is done by triggers, but when I set a trigger you can only make the trigger count for one particular unit or group and not for three individual units, atleast I can't.

How do I make this trigger?

NB. I don't know much about scripting/editing)

Thanks alot.

Share this post


Link to post
Share on other sites

First you have to add names to the helicopters, f.i. "LB1", "LB2", "LB3"

In the trigger's condition line you can write:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">not alive LB1 and not alive LB2 and not alive LB3

You can set the trigger to End 1, End 2 or whatever you desire.

Share this post


Link to post
Share on other sites

hi all,

or 2 triggers

first trigger text > End of Mission 2

type: nothing

condition : (!alive LB1) && (!alive LB2) && (!alive LB3)

action :Player exec "outro2.sqf"

second trigger  text > Mission Over 2

type : set the trigger to End 1, End 2 or whatever you want.

condition: over2

exemple outro2.sqf

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">TitleCut ["","BLACK OUT", 0.5];

TitleText["Mission failed!\nall Choppers-Attack are History...\n\n your Mission Name","Plain Down"];

Over2=true;

exit;

Share this post


Link to post
Share on other sites

Okey, going to try it right away. Thnx for your quick replies guys wink_o.gif

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  

×