mirror of
https://github.com/Teh-Dango/Sarge-AI.git
synced 2024-08-30 16:32:11 +00:00
3ac749d64b
This is the latest stable version of Sarge AI for Arma 3: Exile.
24 lines
471 B
Plaintext
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
|