Skip to content

Commit

Permalink
API - Filter radio IDs when setting unit loadouts via CBA (#1315)
Browse files Browse the repository at this point in the history
Co-authored-by: BrettMayson <brett@mayson.io>
  • Loading branch information
LinkIsGrim and BrettMayson committed Jul 2, 2024
1 parent e5582cd commit 89eb815
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions addons/api/XEH_preInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 89eb815

Please sign in to comment.