Skip to reading
PCA Script Programming

watch_attach_point_contacts()

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

Watch Attach Point Contacts | Action ID: WatchAttachPointContacts

Start a named contact watch, optionally using swept detection between frames.

Source table from watch_attach_point_contacts(), page 164
Option key / fieldMeaning and accepted inputDefault
Watch ID watchIdStable name for this continuing contact watch.Blank
Object / Character entityIdChoose a scene entity ID.Blank
Attach Point pointName of the source attach point.Blank
Target Object targetIdChoose a scene entity ID.Blank
Target Attach Point targetPointName of the attach point on the target entity.Blank
Contact Tolerance toleranceExtra allowed contact distance; use a nonnegative number.0.0
Detect Between Frames sweptCheck movement between samples to catch brief contacts.true

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

Code example
watch_attach_point_contacts({"watchId": "", "entityId": "archive_door", "point": ""})

In use. Watch tool_touch during a fast tool animation. Listen for OnAttachPointContact, filter the watch ID and the relevant point IDs, and stop the watch when the animation or puzzle phase ends.

Page 164 of 357Permalink
Go to page