Jump to content
PSYKO_nz

OPFOR not present trigger to fire when 75% of OPFOR are killed?

Recommended Posts

hi there,

 

need some help, actually, I need a lot of help but that's for local mental health services to sort out... 

 

any way. I'm looking for the most simple way to set up a trigger that fires when any given percentage of the units are killed/not present,

ie, 

area trigger for opfor over a town, finding every last opfor is time-consuming and boring, I need the area trigger to pop the "clear the village" objective trigger when only 50-75% of the opfor are dead.

 

I want to try and do this inside the trigger avoiding external scripts if at all possible.

 

any quick and dirty ways to go about this? oh and it will be run on a dedicated server

 

 

cheers guys

Share this post


Link to post
Share on other sites

Thanks for the link! I wonder why I couldn't find that, must have been a bad google, anyway

 

this 

0.25 * ( count ( allDeadMen select { _x inArea thisTrigger &&  ( [getNumber (configfile >> "CfgVehicles" >> typeOf _x >> "side")] call BIS_fnc_sideType == east ) } ) + count ( thisList select { side _x == east })) >= count ( thisList select { side _x == east })

worked for me, here is the original post

 

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

×