Skip to reading
PCA Script Programming

jump()

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

Jump | Action ID: Jump

Ask the selected character to jump through the adventure extension.

Source table from jump(), page 113
Option key / fieldMeaning and accepted inputDefault
Character characterIdChoose a Character Designer ID; player is a runtime alias where supported.Blank

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

Code example
jump({"characterId": "player"})

In use. Use it for an appropriate controllable character during a test. A jump action does not automatically provide a jump animation, a platforming controller or a valid landing surface; those still depend on the character and room setup.

play_animation()#

Play Animation | Action ID: PlayAnimation

Request an animation clip or state on the target entity. Most imported clips start and return immediately.

Source table from jump(), page 113
Option key / fieldMeaning and accepted inputDefault
Room sceneIdChoose a scene ID.Blank
Character / Object entityIdChoose an entity in the selected scene.Blank
Animation clipChoose a clip/state available to that entity.Blank

Timing. Most imported animation requests return after starting playback. They do not wait for the full clip length; some procedural fallback motions do wait.

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

In use. Use a short, non-looping lever gesture or nod. Confirm the clip/state ID exists on the actual imported model. Looping animations do not have a natural one-shot finish, so do not build story timing on an endless loop.

Page 113 of 357Permalink
Go to page