Skip to reading
PCA Script Programming

set_attach_point()

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

Set Attach Point | Action ID: SetAttachPoint

Create or update a named attach point with position, rotation, coordinate space, bone and contact radius.

Source table from set_attach_point(), page 158
Option key / fieldMeaning and accepted inputDefault
Object / Character entityIdChoose a scene entity ID.Blank
Attach Point pointName of the source attach point.Blank
Position positionDestination/placement coordinates as [X, Y, Z].[0, 0, 0]
Rotation (degrees) rotationRotation values as a numeric array; follow the field's stated units.[0, 0, 0]
Bone Name (optional) boneExact imported skeleton bone name, if this point follows a bone.Blank
Coordinate Space spaceChoose: object, model, sprite_uv."object"
Contact Radius contactRadiusRadius used to test contact around an attach point.0.1
Enabled enabledExplicit on/off state for the feature or response.true

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

Code example
set_attach_point({"entityId": "archive_door", "point": "", "position": [0, 0, 0]})

In use. Define right_hand_grip on a character's hand bone. Object/model coordinates and sprite UV coordinates mean different things; choose the space deliberately. The bone name must match the imported skeleton exactly.

Page 158 of 357Permalink
Go to page