View Single Post
04/26/14, 09:55 AM   #12
myslex
Join Date: Apr 2014
Posts: 22
Originally Posted by Biki View Post
Lua Code:
  1. ZO_PlayerAttributeHealthBarLeftGloss:SetHandler("OnUpdate", function()
  2.     ZO_PlayerAttributeHealthBarLeftGloss:SetHidden(true)
  3.   end)
  4.   ZO_PlayerAttributeHealthBarRightGloss:SetHandler("OnUpdate", function()
  5.     ZO_PlayerAttributeHealthBarRightGloss:SetHidden(true)
  6.   end)

Will work too, quick and dirty. Just tested it. But there might be more performant options available.
Oh this is progress!

Allthough im ashamed to admit, i am allergic to 'onupdate' functions that run continuesly. As you said, im a performance junkie.. All addons Im using / have written are triggered on events..

Small update to my problem..
It would seem my problem is directly related to the
ZO_PlayerAttributeHealth.playerAttributeBarObject.timeline:GetAnimation() ..
the animation is running when engaging in combat, aswell as when using an 'power up' ability such as increase armor buff..

If only there was a way to remove an existing animation................

MSLex
  Reply With Quote