2021-10-12 09:33:05 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
ADDON = false;
|
|
|
|
|
|
|
|
PREP_RECOMPILE_START;
|
|
|
|
#include "XEH_PREP.hpp"
|
|
|
|
PREP_RECOMPILE_END;
|
|
|
|
|
2023-12-07 03:20:47 +00:00
|
|
|
#include "initSettings.inc.sqf"
|
2022-08-29 00:24:24 +00:00
|
|
|
|
2024-02-05 18:54:51 +00:00
|
|
|
// handle JIP
|
|
|
|
if (isServer) then {
|
|
|
|
GVAR(allChildren) = [];
|
|
|
|
} else {
|
|
|
|
// can't use CBA EH in postInit because too late for server PlayerConnected EH
|
|
|
|
[QGVAR(setTowParentAllChildren), {
|
|
|
|
params ["_children"];
|
|
|
|
TRACE_1("setTowParentAllChildren",_children);
|
|
|
|
{
|
|
|
|
private _parent = _x getVariable QGVAR(parent);
|
|
|
|
TRACE_2("setTowParent",_x,_parent);
|
|
|
|
_x setTowParent _parent;
|
|
|
|
} forEach _children;
|
|
|
|
}] call CBA_fnc_addEventHandler;
|
|
|
|
};
|
|
|
|
|
2021-10-12 09:33:05 +00:00
|
|
|
ADDON = true;
|