Keyvalue/Targetname: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Undo revision 137184 by Theyoungster (Talk))
(Cleaned up unnecessary/'bloaty' invisible content with poor accessibility)
 
(64 intermediate revisions by 20 users not shown)
Line 1: Line 1:
{{ScrollBox|title=Targetname|
{{LanguageBar}}
Name <code><[[string]]></code>
<onlyinclude>{{KV
: The [[targetname]] other entities refer to this entity by. {{{targetname add|}}}
| intn = targetname
; {{l4d2 add|Entity Scripts <code><[[VScript]]s></code>}}
| 1 = [[Targetname|Name]]
: Name(s) of script files that are executed after all entities have spawned.
| 2 = target_source
; {{l4d2 add|Script think function <code><string></code>}}
| 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]].
: Name of a function in this entity's script scope which will be called automatically.
}}
}}
:{{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.