I've configured a Boss Bar to update successfully based on a unit's Health. However, I haven't been able to create a Boss Bar that updates based on a unit's Energy.
Currently:
UI - Display boss bar 2 with title "Energy", portrait Assets\Textures\btn-ability-protoss-feedback-color.dds and maximum value (Integer(([ENGINE] Link Maximum Energy (Current)))) for (All players)
UI - Set boss bar 2 current value to [ENGINE] Energy (Do refresh the boss bar)
Where "[ENGINE] Energy" is a GV updated each time the hero's Energy changes. However, the Boss Bar does not update when the hero's Energy changes (the Boss Bar remains at 3/3, and never changes).
In the tutorial about Boss Bars this question was answered successfully, however, I have no had any luck replicating the result...
I've configured a Boss Bar to update successfully based on a unit's Health. However, I haven't been able to create a Boss Bar that updates based on a unit's Energy.
Currently:
UI - Display boss bar 2 with title "Energy", portrait Assets\Textures\btn-ability-protoss-feedback-color.dds and maximum value (Integer(([ENGINE] Link Maximum Energy (Current)))) for (All players)
UI - Set boss bar 2 current value to [ENGINE] Energy (Do refresh the boss bar)
Where "[ENGINE] Energy" is a GV updated each time the hero's Energy changes. However, the Boss Bar does not update when the hero's Energy changes (the Boss Bar remains at 3/3, and never changes).
In the tutorial about Boss Bars this question was answered successfully, however, I have no had any luck replicating the result...
You have to run Update Boss Bar when you change [ENGINE] Energy. Unlike Health, other values don't get updated automatically.