Sarge-AI/scripts/UPSMON/COMMON/vehicles/fnc/UPSMON_fnc_commonTurrets.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

30 lines
596 B
Plaintext

/****************************************************************
File: UPSMON_fnc_commonTurrets.sqf
Author: Killzonekid
Description:
Get all the turretpath of the vehicle
Parameter(s):
<--- vehicle
Returns:
array of turretpath
****************************************************************/
private ["_arr","_trts"];
_arr = [];
_trts = configFile / "CfgVehicles" / typeOf _this / "Turrets";
for "_i" from 0 to count _trts - 1 do
{
_arr pushback [_i];
for "_j" from 0 to count (
_trts / configName (_trts select _i) / "Turrets"
) - 1 do
{
_arr pushback [_i, _j];
};
};
_arr