From 162184d345b8b37ebff4f1c78f8660f9cd5652b5 Mon Sep 17 00:00:00 2001 From: Kugane Date: Mon, 12 Oct 2015 19:18:43 +0200 Subject: [PATCH] Intitialisation reworked only vehicles in the player radius get initialized --- Igiload/IgiLoadInit.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Igiload/IgiLoadInit.sqf b/Igiload/IgiLoadInit.sqf index a0c58b5..a614b82 100644 --- a/Igiload/IgiLoadInit.sqf +++ b/Igiload/IgiLoadInit.sqf @@ -33,7 +33,7 @@ call compileFinal preprocessFileLineNumbers "IgiLoad\IgiLoadTaru.sqf"; while {true} do { sleep (IL_Check_Veh_Min + (random (IL_Check_Veh_Max - IL_Check_Veh_Min))); - + IL_LST_Count = nearestObjects[getPos player,IL_Supported_Init_All,75]; //Delete vehicles from "IL_Veh_Array" if not in "vehicles" { if !(_x in vehicles) then @@ -48,5 +48,5 @@ while {true} do _null = [_x] execVM "IgiLoad\IgiLoad.sqf"; waitUntil {scriptDone _null}; }; - } forEach (vehicles); + } forEach IL_LST_Count; };