Legacy Reference

Attachment Sockets

To attach something to a character, you must first create an attachment socket. A socket is an empty attachment without assigned geometry. Sockets have a name, position/orientation (for joint and face attachments), and attachment type. Attachment sockets can be used by game code to attach objects to characters at runtime, such as replacing weapons attached to a hand. After a socket is created, you can plug a .cgf attachment into it.


To display all empty sockets for a character, use the ca_DrawEmptyAttachments=1 console variable.

You can also use sockets to achieve simulated motion of joint and face attachments. This type of animation is always a reaction to a primary character motion, and are called secondary animations. Such animations can simulate the movement of attached objects. For more information, see Secondary Animations (Simulations).