Use playerInventoryChanged instead of Take

This makes sure to also fire when other mods, like TFAR (when adding
backpacks) add items via script.
This commit is contained in:
KoffeinFlummi 2015-04-14 21:28:18 +02:00
parent 71b19b4621
commit e7807c009f
2 changed files with 5 additions and 8 deletions

View File

@ -47,11 +47,3 @@ class Extended_Local_EventHandlers {
};
};
};
class Extended_Take_EventHandlers {
class CAManBase {
class ADDON {
take = QUOTE(call FUNC(itemCheck));
};
};
};

View File

@ -266,3 +266,8 @@ if (USE_WOUND_EVENT_SYNC) then {
// Prevent all types of interaction while unconscious
// @todo: probably remove this when CBA keybind hold key works properly
["isNotUnconscious", {!((_this select 0) getVariable ["ACE_isUnconscious", false])}] call EFUNC(common,addCanInteractWithCondition);
// Item Event Handler
["playerInventoryChanged", {
[ACE_player] call FUNC(itemCheck);
}] call EFUNC(common,addEventHandler);