Template:I Parentname: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (ep1 add)
(added help links to key names)
Line 1: Line 1:
'''SetParent <target_destination>'''
'''[[Entity_Hierarchy_%28parenting%29#SetParent|SetParent]] <target_destination>'''
:Changes the entity's parent in the movement hierarchy.
:Changes the entity's parent in the [[movement hierarchy]].
*'''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|SetParentAttachmentMaintainOffset <vector>}}'''
*'''{{ep1 add|[[Entity_Hierarchy_%28parenting%29#SetParentAttachmentMaintainOffset|SetParentAttachmentMaintainOffset]] <vector>}}'''
: 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 at the time it is attached.
*'''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 the the movement hierarchy, leaving it free to move independently.

Revision as of 12:22, 2 March 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 at the time it is attached.
Removes this entity from the the movement hierarchy, leaving it free to move independently.