patpowercat 7 Posted January 3, 2017 I am trying to make a trigger activate when a certain number of units out of a group of named units are killed. I know I can do something like {alive _x} count units ALPHA < 1 But I don't want to group these units as they are (A) across the map and (B) when too close to each other they move out of the positions I put them in in editor. Any suggestions? Share this post Link to post Share on other sites
davidoss 552 Posted January 3, 2017 ([unit1,unit2,unit3,unit4,unit5] select {alive _x}) isEqualTo [] true if all (unit1,unit2,unit3,unit4,unit5) are killed false if all or any of them are alive Share this post Link to post Share on other sites
theend3r 83 Posted January 3, 2017 10 minutes ago, davidoss said: ([unit1,unit2,unit3,unit4,unit5] select {alive _x}) isEqualTo [] true if all (unit1,unit2,unit3,unit4,unit5) are killed false if all or any of them are alive Just out of curiosity, is this faster than ({alive _x} count [unit1,unit2,unit3,unit4,unit5]) isEqualTo 0 ? Edit: ([unit1,unit2,unit3,unit4,unit5] select {alive _x}) isEqualTo [] = 0.0112ms ({alive _x} count [unit1,unit2,unit3,unit4,unit5]) isEqualTo 0 = 0.0108ms Share this post Link to post Share on other sites
davidoss 552 Posted January 3, 2017 I am curious too lets check that.. Share this post Link to post Share on other sites
davidoss 552 Posted January 3, 2017 Looks like your iteration is quicker 0,014ms that mine 0,018ms and even your arma is quicker that mine :-) 1 Share this post Link to post Share on other sites