SetTriggerEnabled()
Enable / Disable Trigger
Enable or disable a trigger's runtime event behavior.
| Option key / field | Meaning and input | Default |
|---|---|---|
| Room sceneId | Choose a scene ID. | Blank |
| Trigger entityId | Choose a trigger 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 SetTriggerEnabled({"sceneId": "lab", "entityId": "archive_door", "enabled": true})In use. Turn off a doorway trigger during an opening cutscene, then turn it on when play begins. Existing overlaps and the player starting inside the volume need to be tested; do not treat the toggle as a guaranteed fresh Enter event.
SpawnObject()#
Spawn Scene Object
Spawn or restore an already authored scene object definition.
| Option key / field | Meaning and input | Default |
|---|---|---|
| Room sceneId | Choose a scene ID. | Blank |
| Scene Object entityId | Choose an entity in the selected scene. | Blank |
Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.
await SpawnObject({"sceneId": "lab", "entityId": "archive_door"})In use. Restore a temporary prop that was despawned. The chosen object must have an authored definition the runtime can find. Use Create Primitive or Add Asset To Scene to create a new record instead.
