Difference between revisions of "Template:KV Parentname"

From Valve Developer Community
Jump to: navigation, search
(it doesn't work but I cba edit war)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
<noinclude>
 +
{{note|'''This template is deprecated. For new entity pages, please use [[Template:KV BaseEntity]] instead.'''}}
 +
</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. 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]].}} }} }}
 
{{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]].}} }} }}
Line 9: Line 12:
 
* <code>triggerwarning</code> (provide a dummy parent for map init)
 
* <code>triggerwarning</code> (provide a dummy parent for map init)
 
* <code>cswarning</code> (Counter-Strike: Source round restart oddness)
 
* <code>cswarning</code> (Counter-Strike: Source round restart oddness)
 +
  
 
[[Category:Keyvalue Templates|Parentname]]
 
[[Category:Keyvalue Templates|Parentname]]
 
</noinclude>
 
</noinclude>

Latest revision as of 05:27, 22 September 2020

Note.png Note: This template is deprecated. For new entity pages, please use Template:KV BaseEntity instead.

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)