Keyvalue/Targetname: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{Uselangflags|en=1|hr=1|ru=1|zh=1|sk=1}}
{{Uselangflags|en=1|hr=1|ru=1|zh=1|sk=1}}
{{see also|{{t|KV Targetname null}}, for entities that are either stripped by compilers or removed shortly after the map spawns}}
{{see also|{{t|KV Targetname null}}, for entities that are either stripped by compilers or removed shortly after the map spawns}}
; {{code|<nowiki>{{KV Targetname}}</nowiki>}}
{{KV Targetname}}
{{KV Targetname}}
[[Category:Keyvalue Templates|T]]
[[Category:Keyvalue Templates|T]]
<includeonly>


<onlyinclude>
<includeonly><onlyinclude>
{{#switch: {{language}}
{{#switch: {{language}}
| #default = {{KV|[[Targetname|Name]]|intn=targetname|target_source|The name that other entities refer to this entity by, via [[Inputs and Outputs|Inputs/Outputs]] or other [[keyvalue]]s (e.g. <code>[[Entity_Hierarchy_(parenting)#Parentname|parentname]]</code> or <code>target</code>).</br>Also displayed in Hammer's 2D views and [[Hammer Entity Report Dialog|Entity Report]].}} {{seealso|[[Generic Keyvalues, Inputs and Outputs]] available to all entities}}
| #default = {{KV|[[Targetname|Name]]|intn=targetname|target_source|The name that other entities refer to this entity by, via [[Inputs and Outputs|Inputs/Outputs]] or other [[keyvalue]]s (e.g. <code>[[Entity_Hierarchy_(parenting)#Parentname|parentname]]</code> or <code>target</code>).</br>Also displayed in Hammer's 2D views and [[Hammer Entity Report Dialog|Entity Report]].}} {{seealso|[[Generic Keyvalues, Inputs and Outputs]] available to all entities}}

Revision as of 18:18, 26 September 2024

English (en)Hrvatski (hr)Русский (ru)Slovenčina (sk)中文 (zh)
See also:  {{KV Targetname null}}, for entities that are either stripped by compilers or removed shortly after the map spawns


{{KV Targetname}}
Name (targetname) <string>
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities