DMS_Exile/@ExileServer/addons/a3_dms/missions/MM6.sqf

51 lines
1.1 KiB
Plaintext
Raw Normal View History

2015-08-26 13:12:14 +00:00
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;
2015-08-26 18:56:23 +00:00
uiSleep 1;
2015-08-26 13:12:14 +00:00
_missname = "Main Mission 6";
2015-08-26 18:05:12 +00:00
diag_log format ["DMS :: Main Mission 6 started at (%1)",_pos];
2015-08-26 13:12:14 +00:00
["standardHintRequest",["Mission starting! Check your map"]] call ExileServer_system_network_send_broadcast;
// Spawn Marker
[_pos,_missname] call DMS_CreateMarker;
// Spawn Box
2015-08-27 19:57:18 +00:00
_crate = createVehicle ["Box_NATO_Wps_F",[(_pos select 0) - 10, _pos select 1,0],[], 0, "CAN_COLLIDE"];
2015-08-26 18:06:47 +00:00
[1,_crate] call DMS_createBox;
2015-08-26 13:12:14 +00:00
2015-08-26 19:55:41 +00:00
uiSleep 2;
2015-08-26 13:12:14 +00:00
//_crate = [_pos,40,4,2,2] execVM "mission\crates\MM_Box1.sqf";
// spawn AI
2015-08-26 19:55:41 +00:00
//[_pos,5,4] call DMS_SpawnAI;
[_pos,5,4] call DMS_SpawnAI;
2015-08-26 13:12:14 +00:00
2015-08-27 19:28:16 +00:00
waitUntil{sleep 1; {(isPlayer _x) && (_x distance _pos < 30) } count playableUnits > 0};
2015-08-26 19:18:43 +00:00
uiSleep 1;
2015-08-26 13:12:14 +00:00
["standardHintRequest",["Mission has ended, good job!"]] call ExileServer_system_network_send_broadcast;
// Run Cleanup
2015-08-27 21:03:11 +00:00
[_pos,_crate] call DMS_CleanUp;
2015-08-26 13:12:14 +00:00
2015-08-27 19:28:16 +00:00
uiSleep 150;
2015-08-26 13:12:14 +00:00
2015-08-26 17:04:45 +00:00
[] call DMS_SelectMission;