Skip to reading
GDScript Programming & Godot

RemoveAttachPoint()

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

Remove Attach Point

Remove a named attach point from an object or character.

Source table from RemoveAttachPoint(), page 165
Option key / fieldMeaning and inputDefault
Object / Character entityIdChoose a scene entity ID.Blank
Attach Point pointName of the source attach point.Blank

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

Code example
await RemoveAttachPoint({"entityId": "archive_door", "point": ""})

In use. Remove a temporary alignment point after staging a sequence. Any attachment or watch referring to that name must be cleaned up as well; it cannot follow a point that no longer exists.

GetAttachPoint()#

Get Attach Point

Read an attach point's information and optionally store the result in a game variable.

Source table from RemoveAttachPoint(), page 165
Option key / fieldMeaning and inputDefault
Object / Character entityIdChoose a scene entity ID.Blank
Attach Point pointName of the source attach point.Blank
Store Result in Variable resultVariableName of the game variable that receives the returned value.Blank

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

Code example
await GetAttachPoint({"entityId": "archive_door", "point": "", "resultVariable": ""})

In use. Store a hand point in hand_info for a script to inspect. This returns structured information rather than a ready-made visual branch. Inspect the result before assuming a missing point has a usable world position.

Page 165 of 378Permalink
Go to page