Keyvalue/Targetname: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added Template:Lang)
mNo edit summary
Line 1: Line 1:
<noinclude>{{lang|Template:KV Targetname}}
{{Lang}}
{{note|'''This template is deprecated. For new entity pages, please use [[Template:KV BaseEntity]] instead.'''}}
{{Note|'''This template is deprecated. For new entity pages, please use [[Template:KV BaseEntity]] instead.'''}}
</noinclude>
 
{{ScrollBox|title=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|}}}|
Line 8: Line 58:
{{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}}}}
| }}
| }}
}}<noinclude>
}}}}</onlyinclude></includeonly>
[[Category:Keyvalue Templates|Targetname]]
</noinclude>

Revision as of 12:58, 16 March 2023

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)
Note.pngNote:This template is deprecated. For new entity pages, please use Template:KV BaseEntity instead.
Targetname:
Name (targetname) <string>
The targetname that other entities refer to this entity by.
Targetname:
Name (targetname) <string>
The targetname that other entities refer to this entity by.


start ([todo internal name (i)])
Targetname:
Name (targetname) <string>
The targetname that other entities refer to this entity by.
end ([todo internal name (i)])


start ([todo internal name (i)])
Targetname:
Name (targetname) <string>
The targetname that other entities refer to this entity by.
end ([todo internal name (i)])