Forum Jump :

Author Message


Posts: 48
Rank:


Level: Member

Country: fr
Location:
Occupation:
Age:
In-game name:

 
#145577 Posted at 2013-06-16 18:18        
     
I think my method does work, see:
First make an array of all possible units that might be bombers, we'll call it masterBomber.
Then check which units are actually in game with objNull. Could look like this:
_masterBomber = [myBomber1, myBomber2, ... , myBomberN];
_bomberGroup = [];
{
    if(!objNull _x) then {
        _bomberGroup set [count _bomberGroup, [_x]];
    };
}forEach _masterBomber;
Where myBomberi are the names you gave to your bombers.