Entity Hierarchy (parenting): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(revert, spam)
m (interwiki)
Line 1: Line 1:
[[Category:Level Design]]
[[Category:Level Design]]
 
An entity with a parent will duplicate its parent's motion (move with it).  An example would be parenting a [[light_dynamic]] to a lamp [[prop_physics|prop]] so the light becomes part of the lamp and moves with it. A group of objects parented together form an hierarchy and essentially become one object.
An entity with a parent will duplicate its parent's motion (move with it).  An example would be parenting a dynamic light to a lamp prop so the light becomes part of the lamp and moves with it. A group of objects parented together form an hierarchy and essentially become one object.


To parent two objects together, type a name for the parent object in its Name [[keyvalue]].  For the other object, set its Parent key value to that same name.
To parent two objects together, type a name for the parent object in its Name [[keyvalue]].  For the other object, set its Parent key value to that same name.


Only certain entities can have parents. For example, a prop_physics cannot because it is its own physics object.  In this case, a prop_dynamic or prop_dynamic_override should be used instead.
Only certain entities can have parents. For example, a prop_physics cannot because it is its own physics object.  In this case, a [[prop_dynamic]] or [[prop_dynamic_override]] should be used instead.


{{otherlang:en}} {{otherlang:en:jp|Entity Hierarchy (parenting):jp}}
{{otherlang:en}} {{otherlang:en:jp|Entity Hierarchy (parenting):jp}}

Revision as of 17:13, 20 May 2006

An entity with a parent will duplicate its parent's motion (move with it). An example would be parenting a light_dynamic to a lamp prop so the light becomes part of the lamp and moves with it. A group of objects parented together form an hierarchy and essentially become one object.

To parent two objects together, type a name for the parent object in its Name keyvalue. For the other object, set its Parent key value to that same name.

Only certain entities can have parents. For example, a prop_physics cannot because it is its own physics object. In this case, a prop_dynamic or prop_dynamic_override should be used instead.

Template:Otherlang:en Template:Otherlang:en:jp