SetObjectEnabled()
Enable / Disable Object
Set an object's enabled state.
| Option key / field | Meaning and input | Default |
|---|---|---|
| Room sceneId | Choose a scene ID. | Blank |
| Object entityId | Choose an entity in the selected scene. | Blank |
| Enabled enabled | Explicit on/off state for the feature or response. | true |
Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.
await SetObjectEnabled({"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.
SetObjectVisible()#
Hide / Unhide Object
Show or hide an object.
| Option key / field | Meaning and input | Default |
|---|---|---|
| Room sceneId | Choose a scene ID. | Blank |
| Object entityId | Choose an entity in the selected scene. | Blank |
| Visible visible | Explicit visible/hidden state. | true |
Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.
await SetObjectVisible({"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.
