Template:I Targetname: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:
; <code>KillHierarchy</code>
; <code>KillHierarchy</code>
: Removes this entity and all its [[Entity Hierarchy (parenting)|children]] from the world.
: Removes this entity and all its [[Entity Hierarchy (parenting)|children]] from the world.
; <code>AddOutput <[[string]]></code>
; {{l4d2 add|<code>RunScriptFile <[[string]]></code>}}
: Execute a game script file from disk
; {{l4d2 add|<code>RunScriptCode <string></code>}}
: Execute a string of script source code
; <code>AddOutput <string></code>
: Evaluates a keyvalue/output on this entity. It can be potentially very dangerous, use with care.
: Evaluates a keyvalue/output on this entity. It can be potentially very dangerous, use with care.
:Format: <code><key> <value></code>
:Format: <code><key> <value></code>

Revision as of 01:59, 13 August 2010

Targetname:
Kill
Removes this entity from the world.
KillHierarchy
Removes this entity and all its children from the world.
Template:L4d2 add
Execute a game script file from disk
Template:L4d2 add
Execute a string of script source code
AddOutput <string>
Evaluates a keyvalue/output on this entity. It can be potentially very dangerous, use with care.
Format: <key> <value>
Format: <output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire, -1 means infinite>
FireUser1 to FireUser4
Fire the OnUser outputs; see User Inputs and Outputs.