Skip to content

Commit

Permalink
add CBA_preLoadoutSet event
Browse files Browse the repository at this point in the history
  • Loading branch information
LinkIsGrim committed Feb 10, 2024
1 parent 8bb83aa commit 4e54dba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions addons/loadout/fnc_setLoadout.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ if (count _loadout == 10) exitWith {

_loadout params ["_loadoutArray", "_extendedInfo"];

_unit setUnitLoadout [_loadoutArray, _fullMagazines];

if (_extendedInfo isEqualType []) then { _extendedInfo = createHashMapFromArray _extendedInfo; };
["CBA_preLoadoutSet", [_unit, _loadoutArray, _extendedInfo]] call CBA_fnc_localEvent;

_unit setUnitLoadout [_loadoutArray, _fullMagazines];

["CBA_loadoutSet", [_unit, _loadoutArray, _extendedInfo]] call CBA_fnc_localEvent;

0 comments on commit 4e54dba

Please sign in to comment.