Skip to reading
PCA Script Programming

stop_attach_point_watch()

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

Stop Attach Point Watch | Action ID: StopAttachPointWatch

Stop a previously started contact watch by its watch ID.

Source table from stop_attach_point_watch(), page 165
Option key / fieldMeaning and accepted inputDefault
Watch ID watchIdStable name for this continuing contact watch.Blank

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

Code example
stop_attach_point_watch({"watchId": ""})

In use. Stop tool_touch after the tool has been put away. Use the same watch ID that started it. Removing the visible prop alone is not a clear lifecycle plan for a continuing watch.

attach_object()#

Attach Object | Action ID: AttachObject

Attach an object to a target object's attach point.

Source table from stop_attach_point_watch(), page 165
Option key / fieldMeaning and accepted inputDefault
Object 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

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

Code example
attach_object({"entityId": "archive_door", "point": "", "targetId": "archive_door"})

In use. Attach a lantern to the player's hand. Use the prop's source point and the target's grip point when available. Giving an inventory lantern and attaching a visible lantern are separate operations.

Page 165 of 357Permalink
Go to page