Keyvalue/Targetname: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(Cleaned up unnecessary/'bloaty' invisible content with poor accessibility)
 
(59 intermediate revisions by 18 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 [[Thinking|think function]] which will be called automatically every 100 milliseconds (ten times a second) for the duration of the script. It can be used to create timers or to simulate autonomous behavior.{{note|Try to avoid expensive operations in this function, as it may cause performance problems.}}|since=L4D2}}
| 1 = [[Targetname|Name]]
}}<noinclude>
| 2 = target_source
[[Category:Keyvalue Templates|Targetname]]
| 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]].
</noinclude>
}}
:{{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.