Thread Tools Display Modes
Prev Previous Post   Next Post Next
12/16/14, 08:40 PM   #6
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 613
Originally Posted by Baertram View Post
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:
  1. local function itemEquipped(bagId, slotId)
  2.         -- do whatever --
  3.     end
  4.  
  5.     ZO_PreHook("EquipItem", function(bagId, slotId) itemEquipped(bagId, slotId) end)
  Reply With Quote
 

ESOUI » Developer Discussions » Lua/XML Help » Function PlayOnEquippedAnimation is executed sometimes without reason?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off