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