2015-08-26 13:12:14 +00:00
|
|
|
|
|
|
|
private ["_sleepTime","_run","_countArray","_randomMiss","_missVar","_minTime","_maxTime","_missionFnc","_MainArray"];
|
|
|
|
// First we add the array of missions
|
|
|
|
_MainArray = ["MM1","MM2","MM3","MM4","MM5","MM6","MM7","MM8","MM9","MM10"];
|
|
|
|
//DMS_SideArray = ["SM1","SM2"];
|
|
|
|
/*
|
|
|
|
_minTime = 1*600; //1 sec
|
|
|
|
_maxTime = 2*600; //4 sec
|
|
|
|
*/
|
|
|
|
_minTime = 1*5; //1 sec
|
|
|
|
_maxTime = 2*10; //4 sec
|
|
|
|
|
|
|
|
|
|
|
|
_sleepTime = (random (_maxTime - _minTime)) + _minTime;
|
|
|
|
sleep _sleepTime;
|
|
|
|
|
|
|
|
_countArray = count _MainArray;
|
|
|
|
_slct = floor (random _countArray);
|
|
|
|
_missVar = _MainArray select _slct;
|
2015-08-26 19:18:43 +00:00
|
|
|
|
|
|
|
uiSleep 2;
|
2015-08-26 13:12:14 +00:00
|
|
|
// Help from secret skype group.
|
|
|
|
call compile preprocessfilelinenumbers format["\x\addons\DMS\missions\%1.sqf",_missVar];
|
|
|
|
|
2015-08-26 19:18:43 +00:00
|
|
|
|
2015-08-26 18:39:39 +00:00
|
|
|
|
2015-08-26 13:12:14 +00:00
|
|
|
//DMS_MissionRunning = 1;
|
|
|
|
|