ACE3/addons/intelitems/XEH_postInit.sqf

17 lines
556 B
Plaintext
Raw Permalink Normal View History

#include "script_component.hpp"
// Notepad item to magazine
[QGVAR(notepad_Item), QXGVAR(notepad)] call EFUNC(common,registerItemReplacement);
// Only handle loadout change when on map or have open controls
["loadout", {
if (!visibleMap && {GVAR(controlsGroups) isEqualTo []}) exitWith {};
call FUNC(handleLoadout);
}, true] call CBA_fnc_addPlayerEventHandler;
// Check loadout when map is opened
["visibleMap", {
params ["", "_visibleMap"];
if (_visibleMap) then {call FUNC(handleLoadout)};
}, true] call CBA_fnc_addPlayerEventHandler;