Skip to content

Commit

Permalink
Merge pull request #1643 from LinkIsGrim/CBA_preLoadoutSet-event
Browse files Browse the repository at this point in the history
Loadout - Add CBA_preLoadoutSet event
  • Loading branch information
PabstMirror committed Mar 2, 2024
2 parents a136100 + 4e54dba commit 698aee1
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 698aee1

Please sign in to comment.