Gameplay: Objects, descriptions and scene life
Visible, enabled, interactive and physically blocking are separate ideas. Use the smallest change that matches the story. For an item pickup, hiding its world representation and giving its inventory definition are two distinct actions.
SetObjectActionEnabled()#
Enable / Disable Object Action
Enable or disable one object's interaction event or verb response.
| Option key / field | Meaning and input | Default |
|---|---|---|
| Room sceneId | Choose a scene ID. | Blank |
| Object entityId | Choose an entity in the selected scene. | Blank |
| Mouse / Trigger Action actionEvent | Choose the response/event to enable or disable. | 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 SetObjectActionEnabled({
"sceneId": "lab",
"entityId": "archive_door",
"actionEvent": ""
})In use. Disable Use after a machine has been repaired while keeping Look available. Choose the intended event. This is more precise than disabling the entire object.
