Keyvalue/Targetname

From Valve Developer Community
< Keyvalue
Revision as of 10:20, 26 September 2015 by Rectus (talk | contribs)
Jump to navigation Jump to search
Targetname:
Name ([todo internal name (i)]) <string>
The targetname that other entities refer to this entity by.
Entity Scripts ([todo internal name (i)]) <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 ([todo internal name (i)]) <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.
Note.pngNote:Try to avoid expensive operations in this function, as it may cause performance problems.