View Single Post
07/23/18, 12:39 PM   #14
HailTheMoons
 
HailTheMoons's Avatar
Join Date: Jul 2018
Posts: 8
So if I do :
Lua Code:
  1. ZO_PreHook("ArePlayerWeaponsSheathed", myAddon.ToggleWeaponsSheathed())
it will trigger when ArePlayerWeaponsSheathed changes (and work even out of combat), and execute my function who write in the chat (myAddon.ToogleWeaponsSheathed) ?

I changed my code, but it's still not working as intended.

Do you know some add-on which use this ? I searched in my add-ons but found none with this function (even the "SheathWeapon" add-on use RegisterForUpdate() ! )

Thanks a lot for all the help you give me,
  Reply With Quote