Template:KV Targetname

From Valve Developer Community
Jump to: navigation, search
English (en)русский (ru)中文 (zh)
... Icon-Important.png
Red x.png
This template (and its redirect) is Wikipedia icon Deprecated. Its use is not recommended and its functionality may be compromised.
Please use {{KV BaseEntity}} instead.
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.

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.
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.pngNote:Try to avoid expensive operations in this function, as it may cause performance problems.


Key (?) Variable Source (?) Property Name Default Value Description
targetname <string> Targetname Name
The targetname that other entities refer to this entity by.


Key (?) Variable Source (?) Property Name Default Value Description
targetname <string> Targetname Name
The targetname that other entities refer to this entity by.
vscripts <scriptlist> Targetname Entity Scripts
(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.
thinkfunction <string> Targetname Script think function
(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.pngNote:Try to avoid expensive operations in this function, as it may cause performance problems.