mirror of
https://github.com/Defent/DMS_Exile.git
synced 2024-08-30 16:52:12 +00:00
Fixed missions
This commit is contained in:
parent
9b4c2f9a22
commit
6797b9d70e
@ -4,9 +4,6 @@ private ["_crate","_pos","_missname","_aiAmmount","_misText","_missEnd","_group"
|
||||
// associate pos with find safe pos fnc
|
||||
_pos = call DMS_findSafePos;
|
||||
|
||||
uiSleep 1;
|
||||
|
||||
|
||||
_missname = "Main Mission 1";
|
||||
diag_log format ["DMS :: Main Mission 1 started at (%1)",_pos];
|
||||
|
||||
@ -18,33 +15,23 @@ diag_log format ["DMS :: Main Mission 1 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;
|
||||
[(_pos),(5),(4)] call DMS_DMS_SpawnAI;
|
||||
//[(_pos),(5),(4)] call DMS_SpawnAI;
|
||||
[_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;
|
||||
/*
|
||||
|
||||
[_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;
|
||||
[_pos,_crate] call DMS_CleanUp;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
sleep 150;
|
||||
|
||||
[] call DMS_SelectMission;
|
||||
|
Loading…
Reference in New Issue
Block a user