Template:I Parentname

From Valve Developer Community
Revision as of 01:50, 20 July 2009 by TomEdwards (talk | contribs) (better descriptions)
Jump to navigation Jump to search
Parentname:
SetParent <targetname>
Move with this entity. See Entity Hierarchy (parenting).
SetParentAttachment <string>
Attach to a named attachment on the current parent. The entity will teleport so that the position of its root bone matches that of the attachment.
SetParentAttachmentMaintainOffset <string> (in all games since Half-Life 2: Episode One)
As above, but without teleporting. The entity retains its position relative to the attachment at the time of the input being received.
ClearParent
Removes this entity from its current movement hierarchy.