Skip to reading
PCA Script Programming

set_object_enabled()

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

Enable / Disable Object | Action ID: SetObjectEnabled

Set an object's enabled state.

Source table from set_object_enabled(), page 117
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

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

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

In use. Disable a puzzle object while the scene is being prepared. Test its visual, input and collision behavior in the running game; use Set Object Visible when you only mean to change whether it is drawn.

Page 117 of 357Permalink
Go to page