When Health Increases on Character
Fires whenever the health value of a character goes up, for example when it is healed.
Introduction
When Health Increases on Character is an event in the Character Health group of World Events. It fires whenever the health value of a character goes up, for example when the character is healed by a pickup, a teammate, or a command. When it fires, the event hands three values to your script: the Value , how much health was gained, the Source character that provided it, and the Source player who caused it. Like every event, it does nothing by itself. It waits for the right moment, then runs all the actions connected to it. Healing is the calm side of the health family - its counterpart is When Health Decreases on Character , and the family ends with When Health Reduces to Zero on Character when health never comes back up. Healing pickups usually start from When Prop is Picked Up , and the Character Logic guide explains how health rules and regen limits are stored on the character itself. When Health Increases event block in the Script Editor with Value and Source character parameters Image The When Health Increases on Character event in the Script Editor. caption
Parameters
Value the amount of health gained Source character the character that was healed Source player the player behind that character Parameter Description
How to Access
How to Access - Event When Health Increases
How to Use
Select the character, 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 Character Health 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, heal the character, and check that the actions run.
Example
When health increases on a character: Execute Self Character.Controlling Player.UI.Show Toast "Health increase" when-health-increases-on-character-example.png Shows a "Health increase" toast to the controlling player when the character heals. caption
Common Uses
Play a heal sound or sparkle when health goes up Show a recovery animation Count healing done for stats or scoring
Tip
Use When Health Decreases on Character instead to react to damage rather than healing.