Skip to main content

Health and Health Bars

How to use

After importing the building block, simply attach the Health behavior to any entity and it will get a health bar!

Health has the following methods:

  • damage(number) - Damages the unit, dealing damage to shield first
  • setHealth(number) - Set the health value
  • setShield(number) - Set the shield value
  • showHealthbar() - Show the health bar
  • hideHealthbar() - Hide the health bar