When Health Increases
Fires whenever the health value of this object goes up, for example when it is repaired or healed.
Introduction
When Health Increases is an event in the Health Point group of World Events. It fires whenever the health value of this object goes up, for example when it gets healed. This event carries no parameters. Like every event, it does nothing by itself. It waits for the right moment, then runs all the actions connected to it. This event belongs to the Health component. Open the Health component guide to see everything the component itself can do. Healing keeps objects alive: this event is the optimistic sibling of When Health Decreases , and the family ends with When Health Reduces to Zero . Repair tools usually connect through When Prop is Used , and regen rules are configured in the Object Logic guide. When Health Increases event in the World Editor Image The When Health Increases event in the Script Editor. caption
Parameters
Value the amount of health gained Source character the character that caused it Source player the player behind that character Parameter Description
How to Access
How to Access - Event When Health Increases
How to Use
Select the object, press Propertie (the blue equalizer icon) in the bottom action menu, and scroll to the bottom of the properties panel. Press Add Component and pick the Health Point component; its block stacks below the existing properties with the When Health Increases event inside it. Press the + button below the event to add a script, then press Edit on that script to open the script editor and build the actions that should run when the event fires. Press Play and heal the object, then check that the actions run.
Example
When health increases: change the object color to red, wait 0.1 second, then change it back to white. The object briefly turns red when its health increases, then returns to white.
Common Uses
Play a sound when health goes up Heal an object or character when repaired Stop an alarm when health is restored
Tip
Pair it with When Health Decreases to react to both directions of health change.