Difference between revisions of "Template:I Targetname"

From Valve Developer Community
Jump to: navigation, search
(clarification of Use)
(Resorted the template according to the order they appear in the dropdown list.)
Line 1: Line 1:
 
{{ScrollBox|title=Targetname|
 
{{ScrollBox|title=Targetname|
 +
; <code>AddOutput <string></code>
 +
: Evaluates a keyvalue/output on this entity. It can be potentially very dangerous, use with care.
 +
:Format: <code><key> <value></code>
 +
:Format: <code><output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire, -1 means infinite></code>
 +
; <code>FireUser1</code> <span style<nowiki>=</nowiki>"font-weight:normal;">to</span> <code>FireUser4</code>
 +
: Fire the <code>OnUser</code> outputs; see [[User Inputs and Outputs]].
 
; <code>Kill</code>
 
; <code>Kill</code>
 
: Removes this entity from the world.
 
: Removes this entity from the world.
 
; <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>Use</code>
 
: Same as a player invoking [[Use|+use]]; may not do anything. Can also be invoked by creating an output that does not specify an input.
 
: This input is not included in Valve's [[FGD]]s.
 
 
; {{l4d2 add|<code>RunScriptFile <[[string]]></code>}}
 
; {{l4d2 add|<code>RunScriptFile <[[string]]></code>}}
 
: Execute a [[VScript|game script]] from disk.
 
: Execute a [[VScript|game script]] from disk.
 
; {{l4d2 add|<code>RunScriptCode <string></code>}}
 
; {{l4d2 add|<code>RunScriptCode <string></code>}}
 
: Execute a string of script source code.
 
: Execute a string of script source code.
; <code>AddOutput <string></code>
+
; <code>Use</code> {{Not in FGD}}
: Evaluates a keyvalue/output on this entity. It can be potentially very dangerous, use with care.
+
: Same as a player invoking [[Use|+use]]; may not do anything. Can also be invoked by creating an output that does not specify an input.
:Format: <code><key> <value></code>
+
: This input is not included in Valve's [[FGD]]s.
:Format: <code><output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire, -1 means infinite></code>
 
; <code>FireUser1</code> <span style<nowiki>=</nowiki>"font-weight:normal;">to</span> <code>FireUser4</code>
 
: Fire the <code>OnUser</code> outputs; see [[User Inputs and Outputs]].
 
 
}}
 
}}

Revision as of 15:06, 13 March 2011

Targetname:

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.
Kill
Removes this entity from the world.
KillHierarchy
Removes this entity and all its children from the world.
RunScriptFile <string> (New with Left 4 Dead 2)
Execute a game script from disk.
RunScriptCode <string> (New with Left 4 Dead 2)
Execute a string of script source code.
Use !FGD
Same as a player invoking +use; may not do anything. Can also be invoked by creating an output that does not specify an input.
This input is not included in Valve's FGDs.