Skip to reading
GDScript Programming & Godot

StopAttachPointWatch()

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

Stop a previously started contact watch by its watch ID.

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

Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.

Code example
await StopAttachPointWatch({"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.

AttachObject()#

Attach Object

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

Source table from StopAttachPointWatch(), page 171
Option key / fieldMeaning and 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. Waits for the runtime routine to return; no further completion wait is promised by this schema.

Code example
await AttachObject({"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 171 of 378Permalink
Go to page