Difference between revisions of "Template:Kv weapon l4d"

From Valve Developer Community
Jump to: navigation, search
m (Robot: fixing template case.)
m (Robot: fixing template case.)
Line 1: Line 1:
* {{kv targetname}}
* {{KV Targetname}}
* {{KV Angles}}
* {{KV Angles}}
* '''count'''
* '''count'''

Revision as of 19:59, 19 January 2009


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


Pitch Yaw Roll (Y Z X) (angles) <angle>
This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.
  • count
<int> The amount of itemss to spawn.
  • ammo
<int> The amount of ammo this item holds when spawned.