SetObjectInteractionApproach()
Set Object Interaction Approach
Override approach behavior for one object, or inherit the global behavior.
| Option key / field | Meaning and input | Default |
|---|---|---|
| Object Room sceneId | Choose a scene ID. May be blank. | Blank |
| Object / Character entityId | Choose an entity in the selected scene. | Blank |
| Approach Override mode | Choose: inherit, enabled, disabled. | "inherit" |
| Stop Distance (0 = global) distance | Number; decimals allowed. Range: 0.0 to 20.0. | 0.0 |
| Face Target When Override Is Enabled faceTarget | On/off. | true |
Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.
await SetObjectInteractionApproach({
"sceneId": "lab",
"entityId": "archive_door",
"mode": "inherit"
})In use. Give the door its own enabled approach mode and a close stop distance. A small distance cannot move the character through an oversized blocking collider. Set collider dimensions independently in the object's collision settings.
