Skip to reading
PCA Script Programming

attach_points()

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

Attach Points | Action ID: AttachPoints

Attach one entity's point to another entity's point, optionally aligning rotation and suspending movement.

Source table from attach_points(), page 160
Option key / fieldMeaning and accepted inputDefault
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
Align Rotation alignRotationAlign point orientation as well as position.true
Suspend Movement suspendMovementSuspend the attached character/entity movement where supported.true

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

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

In use. Attach a prop grip point to the player's hand grip point. Choose which entity is the child and which is the target. Suspending a character's movement is useful for staging but must fit the rest of the sequence.

Page 160 of 357Permalink
Go to page