Knuckle Cracker

Knuckle Cracker => Support => Topic started by: planetfall on January 22, 2017, 09:09:14 AM

Title: Bug in SetUnitHasHealthBar
Post by: planetfall on January 22, 2017, 09:09:14 AM
In the attached mission, ore deposits can be mined using lathes. Any damage they receive is caught by the script, values are updated, and their health is reset. To make it less obvious that this is going on, the ore deposits have Self 0 SetUnitHasHealthBar in their :awake functions. For playing through in one go, this works. However, if you save and reload while a deposit is being lathed, the health bar reappears and doesn't disappear if you stop lathing it.
Title: Re: Bug in SetUnitHasHealthBar
Post by: knucracker on January 23, 2017, 10:08:42 AM
Fixed in the next build... The actual health/energy bars weren't getting cleaned up when that call was made.  So they were being marooned and showing visually (but not updating).