Difference between revisions of "Template:KV Targetname"

From Valve Developer Community
Jump to: navigation, search
(Template is deprecated)
 
Line 1: Line 1:
 +
<noinclude>
 +
{{note|'''This template is deprecated. For new entity pages, please use [[Template:KV BaseEntity]] instead.'''}}
 +
</noinclude>
 
{{ScrollBox|title=Targetname|
 
{{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|}}}}}

Latest revision as of 17:10, 2 August 2020

Note: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.
Entity Scripts (vscripts) <scriptlist> (in all games since <Left 4 Dead 2>)
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.
Script think function (thinkfunction) <string> (in all games since <Left 4 Dead 2>)
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.