Template:I Source 2 Hierarchy

From Valve Developer Community
Revision as of 14:09, 8 March 2020 by Rectus (talk | contribs) (Created page with "{{ScrollBox|title=Source 2 Hierarchy| {{IO|SetParent|Changes the entity's parent in the movement hierarchy.|param=string}} {{IO|SetParentAttachment|Change this entity to attac...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Source 2 Hierarchy:

SetParent <string>
Changes the entity's parent in the movement hierarchy.
SetParentAttachment <string>
Change this entity to attach to a specific attachment point on its parent. Entities must be parented before being sent this input. The parameter passed in should be the name of the attachment.
SetParentAttachmentMaintainOffset <string>
Change this entity to attach to a specific attachment point on it's parent. Entities must be parented before being sent this input. The parameter passed in should be the name of the attachment. The entity will maintain it's position relative to the parent at the time it is attached.
ClearParent
Removes this entity from the the movement hierarchy, leaving it free to move independently.