From 1b02ddf77dba78112ce05ba09fd3fdb5f330b510 Mon Sep 17 00:00:00 2001 From: Defent Date: Fri, 28 Aug 2015 14:24:31 +0200 Subject: [PATCH] Fix'd --- @ExileServer/addons/a3_dms/missions/MM3.sqf | 28 +++++---------------- 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/@ExileServer/addons/a3_dms/missions/MM3.sqf b/@ExileServer/addons/a3_dms/missions/MM3.sqf index dee6e6d..4e8eaac 100644 --- a/@ExileServer/addons/a3_dms/missions/MM3.sqf +++ b/@ExileServer/addons/a3_dms/missions/MM3.sqf @@ -1,10 +1,4 @@ private ["_crate","_pos","_missname","_aiAmmount","_misText","_missEnd","_group"]; - -/* -_playerClose = false; -_mainTimer = true; -//_missStartTime = floor(time); -*/ // associate pos with find safe pos _pos = call DMS_findSafePos; @@ -20,32 +14,22 @@ diag_log format ["DMS :: Main Mission 3 started at (%1)",_pos]; [_pos,_missname] call DMS_CreateMarker; // Spawn Box -_crate = createVehicle ["Box_NATO_AmmoOrd_F",[(_pos select 0) - 10, _pos select 1,0],[], 0, "CAN_COLLIDE"]; +_crate = createVehicle ["Box_NATO_Wps_F",[(_pos select 0) - 10, _pos select 1,0],[], 0, "CAN_COLLIDE"]; [1,_crate] call DMS_createBox; -uiSleep 2; -//_crate = [_pos,40,4,2,2] execVM "mission\crates\MM_Box1.sqf"; -// spawn AI -//[_pos,5,4] call DMS_SpawnAI; +uiSleep 2; + [_pos,5,4] call DMS_SpawnAI; - - waitUntil{sleep 25; {isPlayer _x && _x distance _pos < 30 } count playableUnits > 0}; + waitUntil{sleep 1; {(isPlayer _x) && (_x distance _pos < 30) } count playableUnits > 0}; -uiSleep 1; ["standardHintRequest",["Mission has ended, good job!"]] call ExileServer_system_network_send_broadcast; // Run Cleanup -[] call DMS_CleanUp; +[_pos,_crate] call DMS_CleanUp; - deleteMarker "DMS_MainMarker"; - deleteMarker "DMS_MainDot"; - - -sleep 150; - -[] call DMS_SelectMission; \ No newline at end of file +[] call DMS_SelectMission;