Template:KV Parentname:zh-cn: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{ScrollBox|title=父实体名| {{KV|Parent |目标名|指定一个 movement parent. 实体将保持与其父实体的初始位移。可以在...")
 
(Update page)
Line 1: Line 1:
{{ScrollBox|title=父实体名|
<noinclude>
{{KV|Parent |目标名|指定一个 [[Entity Hierarchy (parenting)|movement 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]].}} }} }}
{{lang|Template:KV Parentname}}
{{note:zh-cn|'''此模板已弃用。对于新的实体页面,请使用 [[Template:KV BaseEntity:zh-cn]] 代替。'''}}
</noinclude>
{{ScrollBox|title=Parentname|
{{KV:zh-cn|Parent|intn=parentname|targetname|指定一个实体作为[[Entity Hierarchy (parenting)|父实体(跟随移动)]]。实体的父级实体,该实体可以与父实体保持移动偏移。名称后面可以添加一个附属点,以逗号隔开。{{#if: {{{vphystip|}}} | <br>{{tip:zh-cn|父、子级关系对 [[VPhysics]] 实体没有效果。使用 [[phys_constraint]] 代替。}} }}{{#if: {{{triggerwarning|}}} | <br>{{warning:zh-cn|如果触发器不是从父级开始而是动态分配的,请选择另一个实体并将其添加到此处作为虚拟对象。否则触发器将在它获得真正的父级时停止正确碰撞。}} }}{{#if: {{{cswarning|}}} | <br>{{warning:zh-cn|{{css}}, [[Counter-Strike Source Entity Overview#Counter-Strike Round Restarts|将此实体作为另一个实体可能会破坏您的地图]]}} }} }}
}}<noinclude>
}}<noinclude>


----
----
There are three extra bits you can add to this template:
你可以使用此模板的三个额外的参数:


* <code>vphystip</code> (can't parent vphys objects)
* <code>vphystip</code> (不能作为 vphys 对象的父级)
* <code>triggerwarning</code> (provide a dummy parent for map init)
* <code>triggerwarning</code> (map init 提供一个虚拟父级)
* <code>cswarning</code> (Counter-Strike: Source round restart oddness)
* <code>cswarning</code> (反恐精英:起源回合重新开始时出现问题)


[[Category:Keyvalue Templates|Parentname]]
 
[[Category:Keyvalue Templates:zh-cn|Parentname]]
</noinclude>
</noinclude>

Revision as of 23:59, 2 October 2021

Template:Note:zh-cn

Parentname:
Parent (parentname) <targetname>
指定一个实体作为父实体(跟随移动)。实体的父级实体,该实体可以与父实体保持移动偏移。名称后面可以添加一个附属点,以逗号隔开。

你可以使用此模板的三个额外的参数:

  • vphystip (不能作为 vphys 对象的父级)
  • triggerwarning (为 map init 提供一个虚拟父级)
  • cswarning (反恐精英:起源回合重新开始时出现问题)