-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpostInitXEH.sqf
35 lines (21 loc) · 912 Bytes
/
postInitXEH.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
35
/* ----------------------------------------------------------------------------
Name: postInitXEH
Description: Executes all CBA post-init extended eventhandler scripts on units of the given class. Must be defined in description.ext.
Parameters:
0: Unit <OBJECT>
Returns: Nil
Examples:
class Extended_InitPost_EventHandlers {
class CAManBase {
init = "_this call (compile preprocessFileLineNumbers 'postInitXEH.sqf')";
};
};
Author: Incontinentia
---------------------------------------------------------------------------- */
params [["_unit",objNull]];
//Exit if the code is already running on the unit or the unit has "noChanges" variable
if (_unit getVariable ["initLoopRunning",false]) exitWith {};
if (_unit getVariable ["noChanges",false]) exitWith {};
_unit setVariable ["initLoopRunning", true, true];
//Recruitment script
#include "INC_undercover\Scripts\unitInitsUndercover.sqf"