arma3_missions/helotraining.Altis/deleteSquad.sqf

20 lines
598 B
Plaintext
Raw Normal View History

2016-07-24 07:57:58 +00:00
//if (!ferrying) exitWith {};
_group = _this select 0;
_side = _this select 1;
_playerno = _this select 2;
diag_log format["deleteSquad called, _this: %1", _this];
2016-07-24 07:57:58 +00:00
switch (_side) do
{
case "west": { squadMDArray set [_playerno, (squadMDArray select _playerno) - [_group]] };
case "east": { enemyMDArray set [_playerno, (enemyMDArray select _playerno) - [_group]] };
case "aa": { AAMDArray set [_playerno, (AAMDArray select _playerno) - [_group]] };
2016-07-24 07:57:58 +00:00
};
{deleteVehicle _x} forEach units _group;
publicVariable "squadMDArray";
publicVariable "enemyMDArray";
publicVariable "AAMDArray";