DMS_Exile/@ExileServer/addons/a3_dms/missions/mission_init.sqf
2015-09-02 22:30:34 -05:00

31 lines
835 B
Plaintext

/*
DMS: mission_init.sqf
Created by eraser1
Initializes variables for DMS
*/
diag_log "DMS :: Initializing Mission Variables";
// 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
{
diag_log format ["DMS_DEBUG mission_init :: Random time between missions is initially set to %1s | DMS_BMissionLastStart: %2",DMS_BMissionDelay,DMS_BMissionLastStart];
};
// Set mission frequencies from config
DMS_MissionTypesArray = [];
{
for "_i" from 1 to (_x select 1) do {
DMS_MissionTypesArray pushBack (_x select 0);
};
false;
} count DMS_MissionTypes;