Sarge-AI/scripts/UPSMON/COMMON/vehicles/fnc/UPSMON_Emptyturret.sqf
Teh Dango 3ac749d64b 2.1.0
This is the latest stable version of Sarge AI for Arma 3: Exile.
2016-02-19 21:49:51 -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