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 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?