DMS_Exile/@ExileServer/addons/a3_dms/fn_DMS_postInit.sqf

39 lines
967 B
Plaintext
Raw Normal View History

/*
Launches mission functions
Made for Defent for Defents Mission System
And for Numenadayz.com
Written by eraser1
[_delay, _function, _params, _persistance] call ExileServer_system_thread_addTask;
*/
RESISTANCE setFriend[WEST,0];
WEST setFriend[RESISTANCE,0];
RESISTANCE setFriend[EAST,0];
EAST setFriend[RESISTANCE,0];
EAST setFriend[WEST,0];
WEST setFriend[EAST,0];
2015-09-03 06:44:56 +00:00
_code =
2015-09-02 18:01:39 +00:00
{
2015-09-03 06:44:56 +00:00
"DMS_HC_INIT" addPublicVariableEventHandler
{
DMS_HC_Object = _this select 1 select 0;
diag_log format ["DMS Headless Client :: DMS_HC_Object = %1 | serverTime: %2",DMS_HC_Object,(_this select 1 select 1)];
};
2015-09-02 18:01:39 +00:00
};
2015-09-03 06:44:56 +00:00
[0, _code, [], false] call ExileServer_system_thread_addTask;
2015-09-02 18:01:39 +00:00
2015-09-03 06:44:56 +00:00
if(DMS_StaticMission) then
{
call compileFinal preprocessFileLineNumbers "\x\addons\dms\static\static_init.sqf";//<---- TODO
};
2015-09-03 06:44:56 +00:00
if (DMS_DynamicMission) then
{
2015-08-29 01:08:45 +00:00
call compileFinal preprocessFileLineNumbers "\x\addons\dms\missions\mission_init.sqf";
2015-08-29 02:00:20 +00:00
execFSM "\x\addons\dms\FSM\missions.fsm";
};