Template:I Targetname: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(I'm confused)
(clarification of Use)
Line 5: Line 5:
: 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>
; <code>Use</code>
: Same as a player invoking [[Use|+use]]. It can be invoked by creating an output that does not specify an input on the target entity, or by typing its name as normal. It is not included in Valve's [[FGD]]s.
: 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.

Revision as of 09:12, 5 November 2010

Targetname:
Kill
Removes this entity from the world.
KillHierarchy
Removes this entity and all its children from the world.
Use
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.
Template:L4d2 add
Execute a game script 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.