Triggers once when the player dies. Good for death cleanup, saving data, game-over handling, or death presentation.
This is a hat block: it must be placed at the top of a script.
This block has no parameter slots.
when die ├── talk "You died" ├── play sound "death" └── set myVar to 0
Emits the patch marker //PATCH:OnDie, injected into the OnDie() method.
//PATCH:OnDie
OnDie()
Block ID: cu_when_die
cu_when_die
中文 | Event Blocks | Block Reference
There was an error while loading. Please reload this page.