DMS_Exile/scripts/DMS_selectMission.sqf

26 lines
735 B
Plaintext
Raw Normal View History

DMS_SelectMission = {
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
2015-08-25 15:55:45 +00:00
_sleepTime = (random (_maxTime - _minTime)) + _minTime;
sleep _sleepTime;
2015-08-25 15:55:45 +00:00
_countArray = count _MainArray;
_slct = floor (random _countArray);
_missVar = _MainArray select _slct;
2015-08-25 15:55:45 +00:00
// Help from secret skype group.
2015-08-25 17:39:05 +00:00
call compile preprocessfilelinenumbers format["missions\%1.sqf",_missVar];
2015-08-25 15:55:45 +00:00
//DMS_MissionRunning = 1;
2015-08-25 17:39:05 +00:00
};