Originally Posted by Baertram
Hey,
I've hooked the function "PlayOnEquippedAnimation" to see when an item gets equipped to the character.
It is working well.
But sometimes as I stand around doing nothing this function will be executed all of sudden.
This makes no sense because no item was de-/equipped?!
Did anyone experience the same and got a fix for this? Or is it just normal and wished?
|
You could use EquipItem.
Lua Code:
local function itemEquipped(bagId, slotId)
-- do whatever --
end
ZO_PreHook("EquipItem", function(bagId, slotId) itemEquipped(bagId, slotId) end)