When Health Reduces to Zero
Fires at the exact moment the object's health reaches zero, the point where it is destroyed or breaks apart.
Introduction
When Health Reduces to Zero is an event in the Health Point group of World Events. It fires at the exact moment the object's health reaches zero, the point where it is destroyed or knocked out. Like every event, it does nothing by itself. It waits for the right moment, then runs all the actions connected to it. Use it when you want something to happen automatically as soon as the object's health reaches zero. This event belongs to the Health component. Open the Health component guide to see everything the component itself can do. Zero health is the point of no return: this event follows When Health Decreases and completes the family started by When Health Increases . What happens next is When Destroyed or, for unstable objects, the recovery in When Object Restores . Max health and defense are configured in the Object Logic guide. When Health Reduces to Zero event in the World Editor Image The When Health Reduces to Zero event in the Script Editor. caption
Parameters
Source Character the character the event is about Source Player the player who caused the change Parameter Description
How to Access
How to Access - Event When Health Reduces to Zero
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 Reduces To Zero 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 reduce the object health to zero, then check that the actions run.
Example
When health reduces to zero: play War_Shing_04 for the source player at volume 100. When health reaches zero, play War_Shing_04 for the Source player at volume 100.
Common Uses
Break a crate open when destroyed Drop loot when the object or character dies Start a respawn flow after defeat
Tip
Connect cleanup actions here so destroyed objects do not leave dangling state behind.