Skip to reading
PCA Script Programming

stop_animation()

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

Stop Animation | Action ID: StopAnimation

Stop the target entity's current animation through the runtime animation route.

Source table from stop_animation(), page 114
Option key / fieldMeaning and accepted inputDefault
Room sceneIdChoose a scene ID.Blank
Character / Object entityIdChoose an entity in the selected scene.Blank

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

Code example
stop_animation({"sceneId": "lab", "entityId": "archive_door"})

In use. Stop a looping inspection motion before changing the scene. For normal idle/walk behavior, allow the character's state system to resume afterward rather than assuming the stopped pose is a permanent character state.

pause_animation()#

Animation: Pause | Action ID: PauseAnimation

Pause the target entity's animation playback.

Source table from stop_animation(), page 114
Option key / fieldMeaning and accepted inputDefault
Room sceneIdChoose a scene ID.Blank
Character / Object entityIdChoose an entity in the selected scene.Blank

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

Code example
pause_animation({"sceneId": "lab", "entityId": "archive_door"})

In use. Freeze an inspection model while the player reads a note. Pausing a clip does not pause the whole game, music or the character's navigation.

Page 114 of 357Permalink
Go to page