arma3_missions/helotraining.Altis/AASquad.sqf

25 lines
587 B
Plaintext
Raw Normal View History

2016-07-24 07:57:58 +00:00
_centrePos = _this select 0;
_playerno = _this select 1;
2016-07-24 07:57:58 +00:00
_centreX = _centrePos select 0;
_centrePos set [0, _centreX - 1000 + (floor random 500)];
_position = _centrePos findEmptyPosition [0,100];
_groupEnemy = createGroup east;
"O_soldier_AA_F" createUnit [_position, _groupEnemy,"",0.9, "CORPORAL"];
AAMDArray set [_playerno, (AAMDArray select _playerno) + [_groupEnemy]];
publicVariable "AAMDArray";
2016-07-24 07:57:58 +00:00
_enemyCount = count (AAMDArray select _playerno);
2016-07-24 07:57:58 +00:00
if (_enemyCount > 5) then
{
null = [((AAMDArray select _playerno) select 0), "aa", _playerno] execVM "deleteSquad.sqf";
};