mirror of
https://github.com/Teh-Dango/Sarge-AI.git
synced 2024-08-30 16:32:11 +00:00
28 lines
640 B
Plaintext
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;
|
||
|
};
|
||
|
|
||
|
};
|