From 6ed6d08fbf3075b4970597c7de23e5ab636739d7 Mon Sep 17 00:00:00 2001 From: Lupus the Canine Date: Fri, 9 Apr 2021 02:11:45 +0200 Subject: [PATCH] Update XEH_postInit.sqf Moved event invocation to unloadItem, this provides ability to always pass object to eventhandlers. --- addons/cargo/XEH_postInit.sqf | 4 ---- 1 file changed, 4 deletions(-) diff --git a/addons/cargo/XEH_postInit.sqf b/addons/cargo/XEH_postInit.sqf index 0f2ab2bd2c..ce4e0d1319 100644 --- a/addons/cargo/XEH_postInit.sqf +++ b/addons/cargo/XEH_postInit.sqf @@ -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;