Keyvalue/Targetname: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(not deprecated)
Line 1: Line 1:
{{Lang}}
{{Lang}}
{{Tdeprecated|KV BaseEntity}}
<onlyinclude>{{minititle|Targetname}}
 
{{KV Targetname}}
{{KV Targetname|l4d2=1}}
 
 
{{KV|start}}
{{KV Targetname|new=1}}
{{KV|end}}
 
 
{{KV|start}}
{{KV Targetname|new=1|l4d2=1}}
{{KV|end}}
 
<includeonly><onlyinclude>{{#if:{{{new|}}}|
{{KV
| new = 1
| targetname
| string
| src = Targetname
| [[Targetname|Name]]|The [[targetname]] that other entities refer to this entity by. {{{targetname add|}}}
}}
{{#if:{{{l4d2|}}}|
{{KV
| new = 1
| vscripts
| scriptlist
| src = Targetname
| Entity Scripts|since={{l4d2}}|Space delimited list of [[VScript]] files (without file extension) that are executed after all entities have spawned. The scripts are all executed in the same script scope, later ones overwriting any identical variables and functions.
}}
{{KV
| new = 1
| thinkfunction
| string
| src = Targetname
| Script think function|since={{l4d2}}|Name of a function in this entity's script 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. The return value (if present) will set the time until the next call. {{Note|Try to avoid expensive operations in this function, as it may cause performance problems.}}
}}
|}}
|}}<!--
 
 
 
 
 
 
============================================
DEPRECATED DEPRECATED DEPRECATED DEPRECATED:
============================================
 
-->{{#if:{{{new|}}}
|
|{{ScrollBox|title=Targetname|
{{KV|[[Targetname|Name]]|string|intn=targetname|The [[targetname]] that other entities refer to this entity by. {{{targetname add|}}}}}
{{KV|[[Targetname|Name]]|string|intn=targetname|The [[targetname]] that other entities refer to this entity by. {{{targetname add|}}}}}
{{#if:{{{l4d2|}}}|
{{#if:{{{l4d2|}}}|
{{KV|Entity Scripts|scriptlist|intn=vscripts|Space delimited list of [[VScript]] files (without file extension) that are executed after all entities have spawned. The scripts are all executed in the same script scope, later ones overwriting any identical variables and functions.|since={{l4d2}}}}
{{KV|Entity Scripts|scriptlist|intn=vscripts|Space delimited list of [[VScript]] files (without file extension) that are executed after all entities have spawned. The scripts are all executed in the same script scope, later ones overwriting any identical variables and functions.|since={{l4d2}}}}
{{KV|Script think function|string|intn=thinkfunction|Name of a function in this entity's script 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. The return value (if present) will set the time until the next call. {{note|Try to avoid expensive operations in this function, as it may cause performance problems.}}|since={{l4d2}}}}
{{KV|Script think function|string|intn=thinkfunction|Name of a function in this entity's script 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. The return value (if present) will set the time until the next call. {{note|Try to avoid expensive operations in this function, as it may cause performance problems.}}|since={{l4d2}}}}
| }}
| }} </onlyinclude>
}}}}</onlyinclude></includeonly>

Revision as of 10:06, 5 May 2024

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)

Targetname:

Name (targetname) <string>
The targetname that other entities refer to this entity by.