mk82 12 Posted March 19, 2014 Hello, I want a condition to be true, if a specific number of units of an array is dead. How can I do this? Share this post Link to post Share on other sites
-rageQuit- 10 Posted March 19, 2014 Do not use group when creating the array because units are removed once their death is noticed ("Oh no, X is down!") Either create it in init.sqs from unit names, or you can write the following in the Init line of a member of the group: <array name> = units this Then the condition is: "!alive _x" count <array name> == <number to be dead> Share this post Link to post Share on other sites
mk82 12 Posted March 20, 2014 Thanks. Works well. Which condition do I need to get an announcement if any of the arrays units die? Share this post Link to post Share on other sites
-rageQuit- 10 Posted March 20, 2014 "!alive _x" count <array name> >= 1 Meaning: the number of units in <array name> who are NOT alive is equal to, or greater than, one. Or else apply a Killed EventHandler to them, but that might be difficult to make work in multi-player. Share this post Link to post Share on other sites