Jump to content
Sign in to follow this  
ReaperY2K

How to end mission

Recommended Posts

Ive got a search mission whereby your team has to scout out 3 towns for weapons...i have a trigger in each town that when triggered should complete one objective - v1=true

v2=true and v3=true

In another part of the mission the squad is ambushed and must kill all attackers so ive set up another trigger for that

trigger = ( count(units NameOfTheSquad) == 0 )

so how do i combine them all to finish the mission and how many triggers do i need??

Share this post


Link to post
Share on other sites

Just one trigger, set it as End 1.

In the condition field put

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">v1 && v2 && v3 && v4<span id='postcolor'>

assuming that the 4 triggers you just told us about are named v1 through v4.

Remember to set those variables to false in the init.sqs as well.

I think that should work smile.gif

Share this post


Link to post
Share on other sites

I need more help with this plz as it didnt seem to work.....also in single player how do u add retry points?? (where it updates your retry position) and how do u link an intro and outro to a mission eg. the intro plays then the mission briefing appears then the mission and then the outro if the mission is completed....sorry bout this but im relatively new to all this!! confused.gif

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (ReaperY2K @ Dec. 11 2002,17:54)</td></tr><tr><td id="QUOTE">I need more help with this plz as it didnt seem to work.....also in single player how do u add retry points?? (where it updates your retry position) and how do u link an intro and outro to a mission eg. the intro plays then the mission briefing appears then the mission and then the outro if the mission is completed....sorry bout this but im relatively new to all this!!  confused.gif<span id='postcolor'>

I'm not sure about that &&, it might work as well but I use and instead of it. So if you have 3 or 4 variables named as v1, v2, v3 and (v4) kind of monitoring the completed objectives. If your first objective is done, v1=true, when the second one is completed, v2=true, right? Then you should make a new trigger, where you put v1 and v2 and v3 and v4 as the condition part. on the OnActivation put MisEnd1=true for example. Then you have to make another trigger where you put condition: MisEnd1 and set it End #1. Now it should work. I think the problem in the previous helps was that the end #X doesn't work when there are more than 1 conditions. That's why I suggested you to do that Misend1 trigger.

Put savegame on the OnActivation when you want the game to make a retry point.

The Intros and Outros are combined to the mission when you convert the mission into the single missions. They are not linked on the editor.

Hope this one helps! smile.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  

×