arma3_missions/helotraining_mp.Altis/init.sqf

30 lines
738 B
Plaintext
Raw Normal View History

// Config constant globals
2016-07-25 17:49:54 +00:00
LZCOUNT = 86;
2016-07-25 21:58:29 +00:00
STARTPRIORITY = 1000;
EXLUDESPAWNLZS = [(missionNamespace getVariable "lz33")]; // Exclude the airport location near spawn marker
2016-07-25 17:49:54 +00:00
// Precompile code
execVM "precompile.sqf";
2016-07-25 17:49:54 +00:00
// We can't run this before
if (isServer) then
{
// Keep track of how many LZ we have created, used to give tasks unique names and priorities
lzCounter = 0;
publicVariable "lzCounter";
taskIds = [];
publicVariable "taskIds";
2016-07-25 21:58:29 +00:00
//Handle MP parameters
_handle = execVM "readparams.sqf";
waitUntil {isNull _handle};
if (autoSpawnTasks) then
{
[EXLUDESPAWNLZS] spawn taskSpawner;
}
2016-07-24 21:01:49 +00:00
};
2016-07-25 17:49:54 +00:00
// Flag init complete
missionInitComplete = true;
2016-07-25 21:58:29 +00:00
publicVariable "missionInitComplete";