Template:KV Parentname: Difference between revisions
Jump to navigation
Jump to search
Note:This template is deprecated. For new entity pages, please use Template:KV BaseEntity instead.
(https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/game/server/baseentity.cpp#L4150 The input itself clears an attachment and doesn't set a new one) |
(https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/game/server/mapentities.cpp#L83 This is about the keyvalue, not the input.) |
||
Line 3: | Line 3: | ||
</noinclude> | </noinclude> | ||
{{ScrollBox|title=Parentname| | {{ScrollBox|title=Parentname| | ||
{{KV|Parent|intn=parentname|targetname|Specifies a [[Entity Hierarchy (parenting)|movement parent]]. An entity will maintain its initial offset from its parent.{{#if: {{{vphystip|}}} | <br>{{tip|Parenting has no effect on [[VPhysics]] entities. Use a [[phys_constraint]] instead.}} }}{{#if: {{{triggerwarning|}}} | <br>{{warning|If a trigger does not start out with a parent but rather is assigned one dynamically, choose another entity and add it here as a dummy. Otherwise the trigger will stop colliding properly when it gets its real parent.}} }}{{#if: {{{cswarning|}}} | <br>{{warning|In {{css}}, [[Counter-Strike Source Entity Overview#Counter-Strike Round Restarts|parenting this entity to another can break your map]].}} }} }} | {{KV|Parent|intn=parentname|targetname|Specifies a [[Entity Hierarchy (parenting)|movement parent]]. An entity will maintain its initial offset from its parent. An attachment point can be added to the end of the name, separated by a comma.{{#if: {{{vphystip|}}} | <br>{{tip|Parenting has no effect on [[VPhysics]] entities. Use a [[phys_constraint]] instead.}} }}{{#if: {{{triggerwarning|}}} | <br>{{warning|If a trigger does not start out with a parent but rather is assigned one dynamically, choose another entity and add it here as a dummy. Otherwise the trigger will stop colliding properly when it gets its real parent.}} }}{{#if: {{{cswarning|}}} | <br>{{warning|In {{css}}, [[Counter-Strike Source Entity Overview#Counter-Strike Round Restarts|parenting this entity to another can break your map]].}} }} }} | ||
}}<noinclude> | }}<noinclude> | ||
Revision as of 20:18, 21 September 2020

Parentname:
- Parent (parentname) <targetname>
- Specifies a movement parent. An entity will maintain its initial offset from its parent. An attachment point can be added to the end of the name, separated by a comma.
There are three extra bits you can add to this template:
vphystip
(can't parent vphys objects)triggerwarning
(provide a dummy parent for map init)cswarning
(Counter-Strike: Source round restart oddness)