Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
if (DZAI_aiHeliPatrols && (DZAI_curHeliPatrols < 0)) then {
DZAI_curHeliPatrols = 0;
_helipatrols = [] spawn fnc_spawnHeliPatrol;
waitUntil {sleep 1; scriptDone _helipatrols};
sleep 3;
};
if (DZAI_curHeliPatrols == 0) then {
DZAI_curHeliPatrols = -1;
};
if (DZAI_maxHeliPatrols > 0) then {
if ((count DZAI_heliTypes) < 1) then {DZAI_heliTypes = ["UH1H_DZ"]};
_helipatrols = DZAI_maxHeliPatrols spawn DZAI_spawnHeliPatrol;
sleep 5;
};
if ((DZAI_maxHeliPatrols > 0) && (DZAI_curHeliPatrols < 0)) then {
if ((count DZAI_heliTypes) < 1) then {DZAI_heliTypes = ["UH1H_DZ"]};
DZAI_curHeliPatrols = 0;
_helipatrols = DZAI_maxHeliPatrols spawn DZAI_spawnHeliPatrol;
sleep 5;
};
if (DZAI_curHeliPatrols == 0) then {
DZAI_curHeliPatrols = -1;
};
0 = ["air"] spawn fnc_respawnHandler;
if (DZAI_curHeliPatrols == 0) then {
_nul = [] spawn {
sleep (DZAI_respawnTMinA + random (DZAI_respawnTMaxA - DZAI_respawnTMinA));
_nul = DZAI_maxHeliPatrols spawn DZAI_spawnHeliPatrol;
};
};
In the future, it is up to you if you want to modify code for your own purposes because I won't always have the time to plan and make custom code for each person. I could give you directions about what files to edit but you will have to handle the code writing part of it.