View Single Post
12/12/14, 01:41 PM   #3
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5,016
Thanks for the answer.
It seems as if in 90% of this events only the main and offhand are checked.
Maybe it is some kind of detection event for the "weapon switch" button.

btw: My function for this event is now checking if the character window is shown and will react on it only then:
if not ZO_Character:IsHidden() then
-- do your code here
end
This works for me as I only need to do something if you can see the equipped items too.

You could hook the right-click/context menu and mouse double click events too to check if someone has manually changed the equipment by wish, put a variable in your addon and set it to true in this case. Then check if this variable is true in the event function for "PlayOnEquippedAnimation".

Last edited by Baertram : 12/12/14 at 01:47 PM.
  Reply With Quote