When character respawns
Fires when the character comes back to life at a checkpoint.
Introduction
When Character Respawns is an event in the Character group of World Events. It fires when the character comes back to life at a checkpoint. Like every event, it does nothing by itself. It waits for the right moment, then runs all the actions connected to it. Use it to give returning players a clean start, from a spawn flash to resetting traps that were mid-animation. This event belongs to the Character component. Open the Character component guide to see everything the component itself can do. Respawning is the closing beat of the Character family: it usually follows When Character is Killed or When Health Reduces to Zero on Character , and it is the safest place to reset everything the character collected before dying. Jump and landing moments are handled by When Character Jumps and When Character Falls on Ground . To tune spawn points, health, and appearance, see the Character guide. When character respawns event in the Uni editor Image The When character respawns event in the Script Editor.
Parameters
Player the player whose character respawned Parameter Description
How to Access
How to Access - Event When character respawns
How to Use
Click the mannequin on the Spawn Point to select the Starter Player , scroll to the bottom of its properties panel, and press Character to expand the Character section. Press Character Events at the bottom to expand its event list; only three events (jump, killed, and respawn) show up at first. To reveal the others, press the ⋯ button at the right of the Character Events property, scroll down in the popup, and tick the checkbox of the event to show — When Respawning . 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 eliminate the character so it respawns, then check that the actions run.
Example
When character respawns: Execute Self Character.Controlling Player.Player.Mobile Phone Vibration Shake in Light mode Brief when-character-respawns-example.png Gives the controlling player a brief light phone vibration when their character respawns. caption
Common Uses
Spawn-in effects at checkpoints Reset traps and timers for a fair retry Show a quick tip where the player died
Tip
Respawn fires after the position is restored, so actions here can safely interact with the character again.