Skip to content

cu_when_laststand en

mouse114514 edited this page Sep 12, 2026 · 1 revision

When Last Stand

When Last Stand

Overview

Triggers once when the player enters the dying state and gets back up (survives a near-death struggle). Good for comeback presentation or forcing survival logic.

This is a hat block: it must be placed at the top of a script.

Slots

This block has no parameter slots.

Connections

Connection Type Description
Top - hat block, cannot connect
Bottom Statement connected blocks run when the player stands back up from near-death

Typical Uses

  • Play a sound or shout on last stand
  • Grant a short-term buff (adrenaline, damage resistance, etc.)
  • Count how many times the player survived near-death

Example

when last stand
├── play sound "laststand"
├── talk "Not done yet!"
└── set adrenaline to 100

Generated Code

Emits the event marker //EVENT:OnLastStand, wired into the plugin's event handling.

Block ID: cu_when_laststand


中文 | Event Blocks | Block Reference

Clone this wiki locally