Sarge-AI/sarge/UPSMON/MODULES/ARTILLERY/fnc/UPSMON_artilleryBatteryout.sqf
Teh Dango c5e98f17e6 Epoch Update
Epoch Update
2017-10-25 21:36:31 -04:00

28 lines
640 B
Plaintext

/****************************************************************
File: UPSMON_artilleryBatteryout.sqf
Author: Azroul13
Description:
Mortar units repack the static weapon
Parameter(s):
Returns:
nothing
****************************************************************/
private ["_batteryunits","_staticteam"];
_batteryunits = _this select 0;
If (typename (_batteryunits select 0) == "ARRAY") then
{
_staticteam = _batteryunits select 0;
{
If (!alive _x) exitwith {_batteryunits = [];};
} foreach _staticteam;
If (count _batteryunits > 0) then
{
[_staticteam select 0,_staticteam select 1] call UPSMON_Packbag;
};
};