Skip to reading
PCA Script Programming

set_object_interaction_approach()

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

Set Object Interaction Approach | Action ID: SetObjectInteractionApproach

Override approach behavior for one object, or inherit the global behavior.

Source table from set_object_interaction_approach(), page 148
Option key / fieldMeaning and accepted inputDefault
Object Room sceneIdChoose a scene ID. May be blank.Blank
Object / Character entityIdChoose an entity in the selected scene.Blank
Approach Override modeChoose: inherit, enabled, disabled."inherit"
Stop Distance (0 = global) distanceNumber; decimals allowed. Range: 0.0 to 20.0.0.0
Face Target When Override Is Enabled faceTargetOn/off.true

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

Code example
let options = {}
options["sceneId"] = "lab"
options["entityId"] = "archive_door"
options["mode"] = "inherit"
set_object_interaction_approach(options)

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.

Page 148 of 357Permalink
Go to page