diff --git a/config.sqf b/config.sqf index e6ced21..5299a11 100644 --- a/config.sqf +++ b/config.sqf @@ -104,7 +104,7 @@ SC_occupySky = true; // true if you want to have roaming AI helis SC_occupySea = false; // true if you want to have roaming AI boats SC_occupyTransport = true; // true if you want pubic transport (travels between traders) -SC_occupyTransportClass = ["Exile_Chopper_Mohawk_FIA","Exile_Chopper_Mohawk_FIA",Exile_Car_LandRover_Urban]; // to always use the same vehicle, specify one option only +SC_occupyTransportClass = ["Exile_Chopper_Mohawk_FIA","Exile_Chopper_Mohawk_FIA","Exile_Car_LandRover_Urban"]; // to always use the same vehicle, specify one option only SC_occupyTransportStartPos = []; // if empty defaults to map centre SC_occupyTransportAnnounce = false; // true if you want the pilot/driver to talk to passengers in vehicle chat, false if not SC_occupyTransportGetIn = []; diff --git a/scripts/functions/fnc_findsafePos.sqf b/scripts/functions/fnc_findsafePos.sqf index a21a43e..331ac13 100644 --- a/scripts/functions/fnc_findsafePos.sqf +++ b/scripts/functions/fnc_findsafePos.sqf @@ -58,10 +58,8 @@ while{!_validspot} do if(_validspot) then { _validspot = [ _position ] call SC_fnc_isSafePos; - }; - - - + }; + if (isNil "_validspot") then { _validspot = false; }; }; _position \ No newline at end of file diff --git a/scripts/occupationPlaces.sqf b/scripts/occupationPlaces.sqf index c89a015..156c247 100644 --- a/scripts/occupationPlaces.sqf +++ b/scripts/occupationPlaces.sqf @@ -14,6 +14,7 @@ _minFPS = SC_minFPS; _useLaunchers = DMS_ai_use_launchers; _scaleAI = SC_scaleAI; _side = "bandit"; +_okToSpawn = true; if(SC_occupyPlacesSurvivors) then {