mirror of
https://github.com/rambo/arma3_missions.git
synced 2024-08-30 16:52:13 +00:00
30 lines
738 B
Plaintext
30 lines
738 B
Plaintext
// Config constant globals
|
|
LZCOUNT = 86;
|
|
STARTPRIORITY = 1000;
|
|
EXLUDESPAWNLZS = [(missionNamespace getVariable "lz33")]; // Exclude the airport location near spawn marker
|
|
|
|
// Precompile code
|
|
execVM "precompile.sqf";
|
|
|
|
// 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";
|
|
|
|
//Handle MP parameters
|
|
_handle = execVM "readparams.sqf";
|
|
waitUntil {isNull _handle};
|
|
if (autoSpawnTasks) then
|
|
{
|
|
[EXLUDESPAWNLZS] spawn taskSpawner;
|
|
}
|
|
};
|
|
|
|
// Flag init complete
|
|
missionInitComplete = true;
|
|
publicVariable "missionInitComplete";
|