From 46af5cf997813a2b2b47f9859f04e03d68428ffc Mon Sep 17 00:00:00 2001 From: eraser1 Date: Thu, 3 Sep 2015 01:44:56 -0500 Subject: [PATCH] Maybe addPVEH needs to be scheduled... --- @ExileServer/addons/a3_dms/fn_DMS_postInit.sqf | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/@ExileServer/addons/a3_dms/fn_DMS_postInit.sqf b/@ExileServer/addons/a3_dms/fn_DMS_postInit.sqf index 2aa69b9..a34e71e 100644 --- a/@ExileServer/addons/a3_dms/fn_DMS_postInit.sqf +++ b/@ExileServer/addons/a3_dms/fn_DMS_postInit.sqf @@ -15,17 +15,24 @@ EAST setFriend[RESISTANCE,0]; EAST setFriend[WEST,0]; WEST setFriend[EAST,0]; -"DMS_HC_INIT" addPublicVariableEventHandler +_code = { - 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)]; + "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)]; + }; }; +[0, _code, [], false] call ExileServer_system_thread_addTask; -if(DMS_StaticMission) then { + +if(DMS_StaticMission) then +{ call compileFinal preprocessFileLineNumbers "\x\addons\dms\static\static_init.sqf";//<---- TODO }; -if (DMS_DynamicMission) then { +if (DMS_DynamicMission) then +{ call compileFinal preprocessFileLineNumbers "\x\addons\dms\missions\mission_init.sqf"; execFSM "\x\addons\dms\FSM\missions.fsm"; };