SouthSaturnDelta 1 Posted June 16, 2007 Hi guys, Â Having a spot of trouble defining the dead among a group. Cant seem to sort out who are the multiple dead guys that will be replaced later on. I need to get a way to define the dead units. Tried using this below <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_dead = [a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12] _found = [] ? (!alive _x) then {_found = _found + [_x]} foreach _dead Any ideas ? Cheers, SSD ============================================== Thanks to LCD for sorting this out at ofpec.For the record though chaps,his post is pasted below........ ============================================== 1 prob i can think about is ur not putin da code inside brackets 4 da foreach command 2 work try dat (not tested) Code:_dead = [a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12] _found = [] {if (! alive _x) then {_found = _found + [_x]}} foreach _dead LCD OUT Share this post Link to post Share on other sites