Set Health Bar

Description

The Set Health Bar behavior will set the health bar to a specified value. This will override the current health par percentage with the new percentage. 

This behavior will trigger an event immediately when executed. 

 

Properties

Object A

This is the health bar that will be overwritten with the new percentage. If there is a health bar in your UI layers it will automatically be selected. If you do not have a health bar make sure to add one and then select it here.

Percentage

This is the new percentage to set the health bar to.

Outputs

This behavior has no outputs. 

Examples

Use this behavior to override the current health bar percentage with a new value. For example, if you pick up a health back that will fully restore your health you can set it to 100%. No matter what the current health percentage is, after this behaviour is executed it will be overwritten to 100.

 

Related

Add to Health Bar

Get Health Bar

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk