Keyvalue/Targetname: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Undo revision 137184 by Theyoungster (Talk))
No edit summary
 
(62 intermediate revisions by 19 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>}}
| addtext = {{Invisible edit link|namespace=|Keyvalue/Targetname}}
: Name(s) of script files that are executed after all entities have spawned.
| 1 = [[Targetname|Name]]
; {{l4d2 add|Script think function <code><string></code>}}
| 2 = target_source
: Name of a function in this entity's script scope which will be called automatically.
| 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 07:37, 2 June 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>[ Edit ]
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.