Gameplay: Audio, video, FMV and recorded gameplay
Sound effects, music, voice and video use separate playback routes. A sound channel gives you a handle for stopping, pausing or fading a group of effects. Starting playback usually lets the next instruction run immediately.
play_sound()#
Play Sound | Action ID: PlaySound
Start an imported audio asset as a sound effect, optionally on a named channel.
| Option key / field | Meaning and accepted input | Default |
|---|---|---|
| Sound Asset assetId | Choose an imported audio asset. | Blank |
| Channel / ID channel | Sound-effect channel name. Reuse it to pause, stop or fade that sound group. | Blank |
Timing. The call waits for its runtime routine to return; no additional completion wait is promised by this schema.
play_sound({"assetId": "chime", "channel": "puzzle"})In use. Play chime on puzzle, then continue the list. Use that same channel to stop or fade the effect later. A blank channel has broader/default behavior; name important continuing sounds.
