Keyvalue/Targetname: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Category and templates)
(Cleaned up unnecessary/'bloaty' invisible content with poor accessibility)
 
(62 intermediate revisions by 19 users not shown)
Line 1: Line 1:
{{ScrollBox|title=Targetname|
{{LanguageBar}}
{{KV|Name|target_source|The name that other entities refer to this entity by. {{{targetname add|}}}}}
<onlyinclude>{{KV
{{KV|Entity Scripts|scriptlist|Name(s) of script files that are executed after all entities have spawned.|since=L4D2}}
| intn = targetname
{{KV|Script think function|string|Name of a function in this entity's script scope which will be called automatically.|since=L4D2}}
| 1 = [[Targetname|Name]]
}}<noinclude>[[Category:FGD Templates|T]]</noinclude>
| 2 = target_source
| 3 = 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}}</onlyinclude>
{{Wikinote|Can be added to entity pages using template {{T|KV Targetname}}. Language is selected automatically based on the page's prefix.}}

Latest revision as of 17:14, 7 November 2025

English (en)Deutsch (de)Español (es)Français (fr)Hrvatski (hr)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)中文 (zh)Translate (Translate)
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
Wiki Note:Can be added to entity pages using template {{KV Targetname}}. Language is selected automatically based on the page's prefix.