39. Attach points are named sockets
An attach point gives a useful name to a position and orientation on an entity. A hand can have right_hand_grip, an engine can have exhaust, and a torch can have flame_top. The names describe where an effect belongs rather than where the character happens to be standing.
| Part of the link | Example |
|---|---|
| Source / child | The Particle object hand_orb. This is the thing that moves to follow. |
| Target / parent | The live player instance ada, also available as player when active. |
| Target Attach Point | right_hand_grip on the player. |
| Attachment Offset | A small adjustment measured relative to that point’s orientation. |
| Own Attach Point | A point on a carried prop when one prop point must meet the hand point. Particle attachment normally uses the emitter origin. |
The link is updated as the target moves. A point bound to a skeleton bone also follows that bone’s animation. A point that is merely near the hand in object space follows the character root, but it will not stay in the hand when the arm moves.
A surface shader travels with its object: attach that object if a glowing prop should follow a hand. A screen shader belongs to the view and cannot be socketed onto a bone. For a local magical effect, attach an ordinary shader-covered object or an authored particle emitter.
Create the target entity and point before linking the emitter. A name that looks right in a text box is not proof that a point with that exact name exists on the live target.
