forked from dklollol/Olsen-Framework-Arma-3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.sqf
28 lines (18 loc) · 872 Bytes
/
init.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
#define framework
#include "core\init.sqf" //DO NOT REMOVE
#include "customization\settings.sqf" //DO NOT REMOVE
#include "core\dia\debug\dia_debug.sqf" //DO NOT REMOVE
if (isServer) then {
"" call FNC_StartingCount; //DO NOT REMOVE
[] spawn { //Spawns code running in parallel
while {!FW_MissionEnded} do { //Loops while the mission is not ended
#include "customization\endConditions.sqf" //DO NOT REMOVE
//The time limit in minutes variable called FW_TimeLimit is set in customization/settings.sqf, to disable the time limit set it to 0
if ((time / 60) >= FW_TimeLimit && FW_TimeLimit != 0) exitWith { //It is recommended that you do not remove the time limit end condition
FW_TimeLimitMessage call FNC_EndMission;
};
};
};
};
#include "modules\modules.sqf" //DO NOT REMOVE
#include "core\postChecks.sqf" //DO NOT REMOVE