summaryrefslogtreecommitdiffstats
path: root/Common/Functions/Common_GetConfigVehicleTurrets.sqf
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Common/Functions/Common_GetConfigVehicleTurrets.sqf16
1 files changed, 16 insertions, 0 deletions
diff --git a/Common/Functions/Common_GetConfigVehicleTurrets.sqf b/Common/Functions/Common_GetConfigVehicleTurrets.sqf
new file mode 100644
index 0000000..f060f7a
--- /dev/null
+++ b/Common/Functions/Common_GetConfigVehicleTurrets.sqf
@@ -0,0 +1,16 @@
+private ["_turrets", "_i", "_path"];
+_turrets = _this select 0;
+_path = _this select 1;
+_i = 0;
+
+while {_i < (count _turrets)} do {
+ private ["_turretIndex", "_thisTurret"];
+ _turretIndex = _turrets select _i;
+ _thisTurret = _path + [_turretIndex];
+
+ tmp_overall = tmp_overall + [_thisTurret];
+
+ [([_turrets select (_i + 1), _thisTurret] Call Compile preprocessFile "Common\Functions\Common_GetConfigVehicleTurrets.sqf")];
+
+ _i = _i + 2;
+}; \ No newline at end of file