From 89eb8157318b2b4539ff179d3696fb30c53c8499 Mon Sep 17 00:00:00 2001 From: Grim <69561145+LinkIsGrim@users.noreply.github.com> Date: Tue, 2 Jul 2024 15:29:22 -0300 Subject: [PATCH] API - Filter radio IDs when setting unit loadouts via CBA (#1315) Co-authored-by: BrettMayson --- addons/api/XEH_preInit.sqf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/addons/api/XEH_preInit.sqf b/addons/api/XEH_preInit.sqf index f8fe4c4b7..53e9c4bc9 100644 --- a/addons/api/XEH_preInit.sqf +++ b/addons/api/XEH_preInit.sqf @@ -14,4 +14,10 @@ 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;