forked from Ansible2/Arma-3-Survival
-
Notifications
You must be signed in to change notification settings - Fork 0
/
initServer.sqf
34 lines (20 loc) · 938 Bytes
/
initServer.sqf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
["<t size = '.5'>Preparing Global Vars.<br/>Please wait...</t>", 0, 0, 10, 0] remoteExec ["BIS_fnc_dynamicText", 0];
waitUntil {
localNamespace getVariable ["KISKA_missionParams_preloadFinished",false]
};
call BLWK_fnc_prepareGlobals;
[BLUFOR,BLWK_numRespawnTickets] call BIS_fnc_respawnTickets;
["<t size = '.5'>Preparing Play Area.<br/>Please wait...</t>", 0, 0, 10, 0] remoteExec ["BIS_fnc_dynamicText", 0];
// find a location for the mission, setup area, create The Crate
call BLWK_fnc_preparePlayArea;
setDate [2020, 7, 1, BLWK_timeOfDay, 0];
waitUntil {count (call CBAP_fnc_players) > 0};
if (BLWK_buildingsNearTheCrateAreIndestructable_radius > 0) then {
[] spawn BLWK_fnc_theCrateBuildingsLoop;
};
call BLWK_fnc_spawnLoot;
[] spawn BLWK_fnc_createBattleAmbienceSound;
[] spawn BLWK_fnc_handleUnconsciousAiEvent;
call BLWK_fnc_startWaveCountdown;
[] spawn BLWK_fnc_startWave;
[] spawn BLWK_fnc_arePlayersAliveLoop;