Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

sfx

Plays a one-shot from audio/sfx/.

{ "type": "sfx", "value": "door_open", "volume": 0.5 }
[sfx door_open volume 0.5]

Usually you need

FieldTypeDefaultEffect
valuestring—Sample name
volume0–11.0Linear scale

All fields

FieldTypeDefaultEffect
valuestring—Sample; empty/null is a no-op
volume0–11.0Scale
whenexpression—Skip when falsy

Audio.