Skip to content

Commit 698aee1

Browse files
authored
Merge pull request #1643 from LinkIsGrim/CBA_preLoadoutSet-event
Loadout - Add CBA_preLoadoutSet event
2 parents a136100 + 4e54dba commit 698aee1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

addons/loadout/fnc_setLoadout.sqf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ if (count _loadout == 10) exitWith {
3232

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

35-
_unit setUnitLoadout [_loadoutArray, _fullMagazines];
36-
3735
if (_extendedInfo isEqualType []) then { _extendedInfo = createHashMapFromArray _extendedInfo; };
36+
["CBA_preLoadoutSet", [_unit, _loadoutArray, _extendedInfo]] call CBA_fnc_localEvent;
37+
38+
_unit setUnitLoadout [_loadoutArray, _fullMagazines];
3839

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

0 commit comments

Comments
 (0)