From 887542292824b454ebd1dac13b6db689821201c7 Mon Sep 17 00:00:00 2001 From: Grim <69561145+LinkIsGrim@users.noreply.github.com> Date: Sat, 10 Feb 2024 11:28:20 -0300 Subject: [PATCH 1/2] API - Filter radio IDs when setting unit loadouts via CBA --- addons/api/XEH_preInit.sqf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/addons/api/XEH_preInit.sqf b/addons/api/XEH_preInit.sqf index f8fe4c4b7..20eaa61ae 100644 --- a/addons/api/XEH_preInit.sqf +++ b/addons/api/XEH_preInit.sqf @@ -14,4 +14,11 @@ GVAR(selectableCurveScale) = 0.7; // Module loading variables GVAR(basicMissionSetup) = false; +// Filter radio IDs when setting unit loadouts +["CBA_preLoadoutSet", { + params ["", "_loadoutArray"]; + + [_loadoutArray] call FUNC(filterUnitLoadout); +}] call CBA_fnc_addEventHandler; + ADDON = true; From 5b96afa70f4a5e0534f29e33caf1ed0d46365c56 Mon Sep 17 00:00:00 2001 From: Grim <69561145+LinkIsGrim@users.noreply.github.com> Date: Sat, 2 Mar 2024 01:24:01 -0300 Subject: [PATCH 2/2] whitespace Co-authored-by: BrettMayson --- addons/api/XEH_preInit.sqf | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/api/XEH_preInit.sqf b/addons/api/XEH_preInit.sqf index 20eaa61ae..53e9c4bc9 100644 --- a/addons/api/XEH_preInit.sqf +++ b/addons/api/XEH_preInit.sqf @@ -17,7 +17,6 @@ GVAR(basicMissionSetup) = false; // Filter radio IDs when setting unit loadouts ["CBA_preLoadoutSet", { params ["", "_loadoutArray"]; - [_loadoutArray] call FUNC(filterUnitLoadout); }] call CBA_fnc_addEventHandler;