mirror of
https://github.com/IT07/a3_vemf_reloaded.git
synced 2024-08-30 16:52:11 +00:00
Addon launcher
This commit is contained in:
parent
ae87271d85
commit
909a475ec6
@ -23,6 +23,14 @@ if ( isNil "VEMFrHasStarted" ) then
|
|||||||
if ( ( _x isEqualTo "checkClasses" ) OR ( _x isEqualTo "spawnStaticAI" ) ) then { waitUntil { if ( scriptDone _h ) then { true } else { uiSleep 0.1; false } } };
|
if ( ( _x isEqualTo "checkClasses" ) OR ( _x isEqualTo "spawnStaticAI" ) ) then { waitUntil { if ( scriptDone _h ) then { true } else { uiSleep 0.1; false } } };
|
||||||
} forEach [ "checkClasses", "missionTimer", "REMOTEguard", "spawnStaticAI" ];
|
} forEach [ "checkClasses", "missionTimer", "REMOTEguard", "spawnStaticAI" ];
|
||||||
|
|
||||||
|
{
|
||||||
|
if ( ( ( [ [ "addonSettings", _x ], [ "enabled" ] ] call VEMFr_fnc_config ) select 0 ) isEqualTo "yes" ) then
|
||||||
|
{
|
||||||
|
_h = [] ExecVM format [ "a3_vemf_reloaded\addons\%1.sqf", _x ];
|
||||||
|
waitUntil { if ( scriptDone _h ) then { true } else { uiSleep 0.1; false } };
|
||||||
|
};
|
||||||
|
} forEach ( "addons" call VEMFr_fnc_config );
|
||||||
|
|
||||||
if ( ( call VEMFr_fnc_whichMod ) isEqualTo "Epoch" ) then { west setFriend [ independent, 0 ]; independent setFriend [ west, 0 ] };
|
if ( ( call VEMFr_fnc_whichMod ) isEqualTo "Epoch" ) then { west setFriend [ independent, 0 ]; independent setFriend [ west, 0 ] };
|
||||||
};
|
};
|
||||||
} else { [ "Launcher", 0, format [ "a3_vemf_reloaded FAILED to launch! VEMFrHasStarted (%1) is already defined!", VEMFrHasStarted ] ] ExecVM ( "log" call VEMFr_fnc_scriptPath ) };
|
} else { [ "Launcher", 0, format [ "a3_vemf_reloaded FAILED to launch! VEMFrHasStarted (%1) is already defined!", VEMFrHasStarted ] ] ExecVM ( "log" call VEMFr_fnc_scriptPath ) };
|
||||||
|
Loading…
Reference in New Issue
Block a user