Skip to content

Commit

Permalink
Update XEH_postInit.sqf
Browse files Browse the repository at this point in the history
Moved event invocation to unloadItem, this provides ability to always pass object to eventhandlers.
  • Loading branch information
LupusTheCanine committed Apr 9, 2021
1 parent 3af1fb5 commit 6ed6d08
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions addons/cargo/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@

[[_hint, _itemName, _vehicleName], 3.0] call EFUNC(common,displayTextStructured);

if (_unloaded) then {
// Invoke listenable event
["ace_cargoUnloaded", [_item, _vehicle]] call CBA_fnc_globalEvent;
};

// TOOO maybe drag/carry the unloaded item?
}] call CBA_fnc_addEventHandler;
Expand Down

0 comments on commit 6ed6d08

Please sign in to comment.