Jump to content
Sign in to follow this  
boyBlue32

Mission end trigger with all LIVING team in boat?

Recommended Posts

Hi guys -- I am trying to have my mission end after all objectives are completed, and when all remaining living squad members board a boat. So far it works fine for just the player entering, but I'd like it to only end the mission when the rest of the surviving squad is on the boat as well.

I could say for the condition field of the trigger: hero1 in crrc AND hero2 in crrc AND hero3 in crrc;

but then what do I do if one of the "hero" guys has died in action? I still want to be able to end the mission. Can anyone give me tips on this?

Share this post


Link to post
Share on other sites

((!alive hero1) OR (hero1 in crrc)) AND ((!alive hero2) OR (hero2 in crrc)) AND

and so on...

Share this post


Link to post
Share on other sites

Thanks for the reply. I eventually figured it out this same way, but I guess I just wasn't sure if parenthesis could be used within the editor in the same way they would be used in other coding languages, and outside of ARMA scripts. Also, I didn't know that && = AND, and || = OR.

However, just when I thought my mission was running perfectly, I realized that when/if my team leader dies, his replacement can no longer see the original briefing (tasks and notes.) Is there some reason why this is? I'm only making a single-player mission, and I spent a long time getting everything just right, (mostly because I love this game, and it's even more fun to create scenarios for myself,) and I'd like to get everything running smoothly. Every search I've made on this board has only yielded results involving MP problems.

Thanks again! I love ARMA and I love this board! Also, I'm drunk!!

Share this post


Link to post
Share on other sites

Another way to do this is using count, alive and in.

example syntax:

({alive _x} count units group player) == ({_x in _vehicle} count units group player)

Edited by ceeeb

Share this post


Link to post
Share on other sites

Can anybody explain to me if it's possible to transfer the initially assigned briefings/tasks to a new team leader when the first team leader dies? Every time my team leader dies, his second-in-command can't see the tasks, and therefore, I assume, can no longer complete the mission. Is it possible to make this work?

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  

×