Skip to reading
PCA Script Programming

set_motion()

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

Set Motion | Action ID: SetMotion

Explicitly enable or disable authored object motion.

Source table from set_motion(), page 155
Option key / fieldMeaning and accepted inputDefault
Room sceneIdChoose a scene ID.Blank
Object entityIdChoose an entity in the selected scene.Blank
Enabled enabledExplicit on/off state for the feature or response.true
State Variable (optional) variableChoose a game variable name. May be blank.Blank

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

Code example
set_motion({"sceneId": "lab", "entityId": "archive_door", "enabled": true})

In use. Start the clock's rotating mechanism after power is restored. Choose Enabled on for a repeat-safe command. This does not create the rotation path, speed or scaling motion; it controls the setup already present on the object.

Page 155 of 357Permalink
Go to page