Documentation: HealthBarComponent

From Noita Wiki
Jump to navigation Jump to search

This component does not have any properties on the main branch.

Name Type Initial Value Example Range Description
Members
gui bool true
gui_special_final_boss bool false
in_world bool false
gui_max_distance_visible float 600
Privates
mOldSpritesDestroyed bool false


When an entity has this component and it's enabled, it causes the first SpriteComponent with tag health_bar to have the special_scale_x property changed according to the percentage of health remaining in the DamageModelComponent of the entity.