• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Efficient way to redraw health bars?

Status
Not open for further replies.

ies

ies

Level 3
Joined
Jun 11, 2019
Messages
16
I want something non-disruptive to instantly redraw the health bars/update the unit.

I came up with this mechanic for a huge desctructible in a choke point of a map I'm working on. It's big enough that you have no idea what's going under and I made it so heroes who enter this area have their health bar hidden through changing their selection scale, then get their original back upon leaving the region.

The problem is that while it works almost too nicely, it won't redraw the health bar to its hidden/shown state unless one of these happens: I hover any unit with mouse; I issue an attack or patrol command with any unit, I mouse over UI(hero icons, bottom UI, any UI), I use mouse to move camera(these are just a few I found).
What doesn't work: taking damage; moving camera /w arrow keys; issuing stand/hold position/move command(neither do the ones attached to spells)

Also I'm curious how will this pan out in a multiplier, do all players need to do such action in order for their pov to update?
 
I've tried transparent screen filter which did nothing but it did tell me the goal is to update the unit's state. Adding a buff did not update the unit, I've decided to go with hide/show on 0s timer for now, it does the job but it's not ideal.
 
Status
Not open for further replies.
Back
Top