mirror of
https://github.com/Defent/DMS_Exile.git
synced 2024-08-30 16:52:12 +00:00
f6cfb66a21
Nice.
29 lines
742 B
Plaintext
29 lines
742 B
Plaintext
|
|
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;
|
|
|
|
uiSleep 2;
|
|
// Help from secret skype group.
|
|
call compile preprocessfilelinenumbers format["\x\addons\DMS\missions\%1.sqf",_missVar];
|
|
|
|
|
|
|
|
//DMS_MissionRunning = 1;
|
|
|