Template:KV Parentname: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
{{KV|Parent|targetname|Specifies a [[Entity Hierarchy (parenting)|movement parent]]. An entity will maintain its initial offset from its parent. {{#if: {{{vphystip|}}} | {{tip|Parenting has no effect on [[VPhysics]] entities. Use a [[phys_constraint]] instead.}} }} {{#if: {{{triggerwarning|}}} | {{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|}}} | {{warning|{{css}} In Counter-Strike: Source, [[Counter-Strike Source Entity Overview#Counter-Strike Round Restarts|parenting this entity to another can break your map]].}} }} }} | {{KV|Parent|targetname|Specifies a [[Entity Hierarchy (parenting)|movement parent]]. An entity will maintain its initial offset from its parent. {{#if: {{{vphystip|}}} | {{tip|Parenting has no effect on [[VPhysics]] entities. Use a [[phys_constraint]] instead.}} }} {{#if: {{{triggerwarning|}}} | {{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|}}} | {{warning|{{css}} In Counter-Strike: Source, [[Counter-Strike Source Entity Overview#Counter-Strike Round Restarts|parenting this entity to another can break your map]].}} }} }} | ||
}}<noinclude> | }}<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]] | [[Category:Keyvalue Templates|Parentname]] | ||
</noinclude> | </noinclude> |
Revision as of 02:47, 29 July 2011
Parentname:
- Parent ([todo internal name (i)]) <targetname>
- Specifies a movement parent. An entity will maintain its initial offset from its parent.
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)