Sarge-AI/ModName.MapName/scripts/UPSMON/COMMON/vehicles/fnc/UPSMON_Emptyturret.sqf
Teh Dango 65e4453908 2.4.0
Major Update. Now supporting DesolationRedux, Epoch and Exile.
2017-12-31 03:16:37 -05:00

24 lines
471 B
Plaintext

/****************************************************************
File: UPSMON_Emptyturret.sqf
Author: Azroul13
Description:
Get number of empty turret
Parameter(s):
<--- vehicle
Returns:
number
****************************************************************/
private ["_turretpath","_number"];
_turretpath = _this call UPSMON_fnc_commonTurrets;
_number = 0;
{
If (IsNull (_this turretUnit _x)) then {_number = _number + 1;};
} foreach _turretpath;
_number