2016-07-24 07:57:58 +00:00
|
|
|
//if (!ferrying) exitWith {};
|
|
|
|
_group = _this select 0;
|
|
|
|
_side = _this select 1;
|
2016-07-24 08:09:11 +00:00
|
|
|
_playerno = _this select 2;
|
|
|
|
diag_log format["deleteSquad called, _this: %1", _this];
|
2016-07-24 07:57:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
switch (_side) do
|
|
|
|
{
|
2016-07-24 08:09:11 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
|
2016-07-24 08:09:11 +00:00
|
|
|
{deleteVehicle _x} forEach units _group;
|
|
|
|
|
|
|
|
publicVariable "squadMDArray";
|
|
|
|
publicVariable "enemyMDArray";
|
|
|
|
publicVariable "AAMDArray";
|