Template:KV Parentname:zh: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{ScrollBox|title=Parentname| {{KV|Parent (parentname)|targetname|指定一个实体作为父实体(跟随移动)。实体的父级实体...")
 
(Redirected page to Template:KV Parentname:zh-cn)
Tag: New redirect
 
Line 1: Line 1:
{{ScrollBox|title=Parentname|
#REDIRECT [[Template:KV Parentname:zh-cn]]
{{KV|Parent (parentname)|targetname|指定一个实体作为[[Entity Hierarchy (parenting)|父实体(跟随移动)]]。实体的父级实体,该实体可以与父实体保持移动偏移。名称后面可以添加一个附属点,以逗号隔开。{{#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>
 
----
There are three extra bits you can add to this template:
 
* <code>vphystip</code> (can't parent vphys objects)
* <code>triggerwarning</code> (provide a dummy parent for map init)
* <code>cswarning</code> (Counter-Strike: Source round restart oddness)
 
[[Category:Keyvalue Templates|Parentname]]
</noinclude>

Latest revision as of 23:51, 2 October 2021