New launch code

This commit is contained in:
IT07 2016-04-13 22:28:53 +02:00
parent fa6c8024e2
commit 12f911c364

View File

@ -9,17 +9,20 @@
uiNamespace setVariable ["VEMFrUsedLocs", []]; uiNamespace setVariable ["VEMFrUsedLocs", []];
uiNamespace setVariable ["VEMFrHcLoad", []]; uiNamespace setVariable ["VEMFrHcLoad", []];
[] spawn VEMFr_fnc_checkLoot; // Check loot tables if enabled _scripts = ["checkLoot","missionTimer","REMOTEguard","spawnStaticAI"];
[] spawn VEMFr_fnc_missionTimer; // Launch mission timer {
[] spawn VEMFr_fnc_spawnStaticAI; // Launch Static AI spawner private ["_script"];
_script = [] ExecVM format["exile_vemf_reloaded\sqf\%1.sqf", _x];
waitUntil { uiSleep 0.5; scriptDone _script };
} forEach _scripts;
west setFriend [independent, 0]; west setFriend [independent, 0];
independent setFriend [west, 0]; independent setFriend [west, 0];
[] spawn [] spawn
{ {
uiSleep 4; uiSleep 4;
_overridesToRPT = "overridesToRPT" call VEMFr_fnc_getSetting; if ("overridesToRPT" call VEMFr_fnc_getSetting isEqualTo 1) then
if (_overridesToRPT isEqualTo 1) then
{ {
_root = configProperties [configFile >> "CfgVemfReloaded" >> "CfgSettingsOverride", "true", false]; _root = configProperties [configFile >> "CfgVemfReloaded" >> "CfgSettingsOverride", "true", false];
if (count _root > 0) then if (count _root > 0) then