Jump to content
ironhawx

Objective counted against unit !alive

Recommended Posts

So basically I'm creating a hostage rescue mission, i have 4 hostages, i have a trigger that will end mission in failure if all hostages die.  Only one need survive so i have the trigger set up at ({alive _x} count [unit1,unit2,unit3,unit4,unit5]) isEqualTo 0 mission ends if it returns back 0.  Simple enough, however trying to set the victory trigger is where I'm having issues, basically I want the trigger to activate once all hostages THAT are a still alive have been moved to safe zone.  So basically if 3 out of the 5 are alive, then all 3 of the ones alive need to moved and present in the safe zone trigger area.  Any help  would greatly be appreciated, I tried searching w/o success.

Share this post


Link to post
Share on other sites
({alive _x} count [unit1,unit2,unit3,unit4,unit5]) > 0 and 
({alive _x} count [unit1,unit2,unit3,unit4,unit5]) == ({alive _x and _x in thislist } count [unit1,unit2,unit3,unit4,unit5]) 

That might work.  count of alive units == count of alive units in the trigger area (i.e., thislist).  Might have to tweak the above to work if they are in a vehicle...I forget...

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

×