Skip to reading
PCA Script Programming

set_object_visible()

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

Hide / Unhide Object | Action ID: SetObjectVisible

Show or hide an object.

Source table from set_object_visible(), page 118
Option key / fieldMeaning and accepted inputDefault
Room sceneIdChoose a scene ID.Blank
Object entityIdChoose an entity in the selected scene.Blank
Visible visibleExplicit visible/hidden state.true

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

Code example
set_object_visible({"sceneId": "lab", "entityId": "archive_door", "visible": true})

In use. Hide the workbench key after giving its inventory item. Hiding is not a collision-size editor or a substitute for disabling a trigger. For reusable pickup logic, target this in a script with an object caller.

Page 118 of 357Permalink
Go to page