PSYKO_nz 42 Posted July 27, 2018 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
FallujahMedic -FM- 866 Posted July 27, 2018 Please see this very similar thread 1 Share this post Link to post Share on other sites
PSYKO_nz 42 Posted July 28, 2018 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