Template:I Parentname: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(added help links to key names)
mNo edit summary
Line 3: Line 3:
*'''[[Entity_Hierarchy_%28parenting%29#SetParentAttachment|SetParentAttachment]] <string>'''
*'''[[Entity_Hierarchy_%28parenting%29#SetParentAttachment|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.
: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.
*'''{{ep1 add|[[Entity_Hierarchy_%28parenting%29#SetParentAttachmentMaintainOffset|SetParentAttachmentMaintainOffset]] <vector>}}'''
*'''{{ep1 add|[[Entity_Hierarchy_%28parenting%29#SetParentAttachmentMaintainOffset|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.
: 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.
*'''[[Entity_Hierarchy_%28parenting%29#ClearParent|ClearParent]]'''
*'''[[Entity_Hierarchy_%28parenting%29#ClearParent|ClearParent]]'''
:Removes this entity from the the movement hierarchy, leaving it free to move independently.
:Removes this entity from its current [[movement hierarchy]].

Revision as of 08:38, 17 April 2008

SetParent <target_destination>

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.
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.
Removes this entity from its current movement hierarchy.