Template:I Parentname: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Robot: fixing template case.)
No edit summary
Line 1: Line 1:
'''[[Entity_Hierarchy_%28parenting%29#SetParent|SetParent]] <target_destination>'''
{{ScrollBox|title=Parentname|
:Changes the entity's parent in the [[movement hierarchy]].
; <code>SetParent <[[targetname]]></code>
*'''[[Entity_Hierarchy_%28parenting%29#SetParentAttachment|SetParentAttachment]] <string>'''
: Changes the entity's parent in the [[movement hierarchy]].
: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.
; <code>SetParentAttachment <[[string]]></code>
*'''{{EP1 add|[[Entity_Hierarchy_%28parenting%29#SetParentAttachmentMaintainOffset|SetParentAttachmentMaintainOffset]] <string>}}'''
: Change this entity to attach to a specific attachment point on its parent. Entities must be parented ''before'' being sent this input.
: 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's Origin and Angles at the time it is attached.
; {{EP1 add|<code>SetParentAttachmentMaintainOffset <string></code>}}
*'''[[Entity_Hierarchy_%28parenting%29#ClearParent|ClearParent]]'''
: Change this entity to attach to a specific attachment point on it's parent. The entity will maintain it's position relative to the parent's [[origin]] and [[angles]] at the time it is attached. Entities must be parented ''before'' being sent this input.
:Removes this entity from its current [[movement hierarchy]].
; <code>ClearParent</code>
:Removes this entity from its current movement hierarchy.
}}

Revision as of 14:28, 19 July 2009

Parentname:
SetParent <targetname>
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.
SetParentAttachmentMaintainOffset <string> (in all games since Half-Life 2: Episode One)
Change this entity to attach to a specific attachment point on it's parent. The entity will maintain it's position relative to the parent's origin and angles at the time it is attached. Entities must be parented before being sent this input.
ClearParent
Removes this entity from its current movement hierarchy.