Spriterfight 10 Posted August 28, 2020 So i wonder how can i check ,last alive member of a group Share this post Link to post Share on other sites
pierremgi 4906 Posted August 29, 2020 {alive _x} count units yourGroup == 1 // TRUE/FALSE if ({alive _x} count units yourGroup == 1) then { lastUnit = units yourGroup select {alive _x} select 0 }; // lastUnit is the last unit 1 Share this post Link to post Share on other sites
Spriterfight 10 Posted August 29, 2020 3 hours ago, pierremgi said: {alive _x} count units yourGroup == 1 // TRUE/FALSE if ({alive _x} count units yourGroup == 1) then { lastUnit = units yourGroup select {alive _x} select 0 }; // lastUnit is the last unit Thank you! Share this post Link to post Share on other sites