Skip to reading
PCA Script Programming

play_music()

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page

Play Music | Action ID: PlayMusic

Start the chosen audio asset as music.

Source table from play_music(), page 196
Option key / fieldMeaning and accepted inputDefault
Music Asset assetIdChoose an imported audio asset.Blank
Skippable skippableOn/off.true

Timing. The call waits for its runtime routine to return; no additional completion wait is promised by this schema.

Code example
play_music({"assetId": "chime", "skippable": true})

In use. Start a room theme and let the following actions continue. The catalog includes Skippable, but the current action bridge does not use that field to implement music skipping; do not build a skip button around it.

stop_music()#

Stop Music | Action ID: StopMusic

Stop the current music track.

No options in the standard shared schema.

Timing. The call waits for its runtime routine to return; no additional completion wait is promised by this schema.

Code example
stop_music({})

In use. Stop the room theme before a silent reveal. It is music-specific and leaves separate effects and voice alone.

Page 196 of 357Permalink
Go to page