DMS_Exile/@ExileServer/addons/a3_dms/scripts/DMS_selectMission.sqf

20 lines
525 B
Plaintext
Raw Normal View History

2015-08-26 13:12:14 +00:00
2015-08-27 20:02:53 +00:00
private ["_sleepTime","_run","_countArray","_randomMiss","_missVar","_missionFnc","_MainArray"];
2015-08-26 13:12:14 +00:00
_MainArray = ["MM1","MM2","MM3","MM4","MM5","MM6","MM7","MM8","MM9","MM10"];
2015-08-27 20:02:53 +00:00
_sleepTime = (random (DMS_MisMaxTime - DMS_MisMinTime)) + DMS_MisMinTime;
2015-08-26 13:12:14 +00:00
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