mirror of
https://github.com/rambo/arma3_missions.git
synced 2024-08-30 16:52:13 +00:00
20 lines
598 B
Plaintext
20 lines
598 B
Plaintext
//if (!ferrying) exitWith {};
|
|
_group = _this select 0;
|
|
_side = _this select 1;
|
|
_playerno = _this select 2;
|
|
diag_log format["deleteSquad called, _this: %1", _this];
|
|
|
|
|
|
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]] };
|
|
};
|
|
|
|
{deleteVehicle _x} forEach units _group;
|
|
|
|
publicVariable "squadMDArray";
|
|
publicVariable "enemyMDArray";
|
|
publicVariable "AAMDArray";
|