2015-08-29 01:48:18 +00:00
/*
DMS: mission_init.sqf
Created by eraser1
Initializes variables for DMS
*/
2015-08-30 01:30:56 +00:00
diag_log "DMS :: Initializing Mission Variables";
2015-08-29 01:48:18 +00:00
// Initialize Variables
DMS_Mission_Arr = [];
DMS_CleanUpList = [];
DMS_MissionCount = 0;
DMS_RunningBMissionCount = 0;
DMS_BMissionLastStart = diag_tickTime;
DMS_BMissionDelay = (DMS_TimeBetweenMissions select 0) + random((DMS_TimeBetweenMissions select 1) - (DMS_TimeBetweenMissions select 0));
if (DMS_DEBUG) then
{
2015-08-31 04:51:06 +00:00
diag_log format ["DMS_DEBUG mission_init :: Random time between missions is initially set to %1s | DMS_BMissionLastStart: %2",DMS_BMissionDelay,DMS_BMissionLastStart];
2015-08-29 01:48:18 +00:00
};
// Set mission frequencies from config
2015-08-31 03:22:15 +00:00
DMS_MissionTypesArray = [];
2015-08-29 01:48:18 +00:00
{
for "_i" from 1 to (_x select 1) do {
DMS_MissionTypesArray pushBack (_x select 0);
};
2015-09-04 16:35:19 +00:00
} forEach DMS_MissionTypes;