DMS_Exile/missions/MM1.sqf
Defent a9916e52b9 Things.
Removed more execVM.

Added Exiles own Hint system script. Because grim called me a moron.
2015-08-25 19:36:00 +02:00

48 lines
1.1 KiB
Plaintext

private ["_crate","_pos","_missname","_aiAmmount","_misText","_missEnd","_group"];
// associate pos with find safe pos fnc
_pos = call DMS_findSafePos;
_missname = "Main Mission 1";
diag_log format["DMS :: Main Mission 1 started at [%1]",_pos];
["standardHintRequest",["Mission starting! Check your map"]] call ExileServer_system_network_send_broadcast;
// Spawn Marker
[_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] call DMS_Box1;
sleep 2;
//_crate = [_pos,40,4,2,2] execVM "mission\crates\MM_Box1.sqf";
// spawn AI
//[(_pos),(5),(4)] call DMS_SpawnAI;
[(_pos),(5),(4)] call DMS_DMS_SpawnAI;
waitUntil{{isPlayer _x && _x distance _pos < 30 } count playableUnits > 0};
/*
[_pos] call MissionCompleted;
[_pos,] call MissionCleanup;
*/
["standardHintRequest",["Mission has ended, good job!"]] call ExileServer_system_network_send_broadcast;
// Run Cleanup
["Ended","Clean"] call DMS_CleanUp;
sleep 150;
CALL DMS_selectMission.sqf;