Difference between revisions of "Template:I Targetname"

From Valve Developer Community
Jump to: navigation, search
(Added important details regarding the input.)
m
Line 7: Line 7:
 
{{IO|RunScriptFile|Execute a game script file from disk.|param=script|since=L4D2}}
 
{{IO|RunScriptFile|Execute a game script file from disk.|param=script|since=L4D2}}
 
{{IO|RunScriptCode|Execute a string of script source code. Quotation marks needed when fired via console. {{warning|Never try to pass string parameters to a script function with this input. It will corrupt the [[VMF]] structure because of the nested quotation marks, which then must be removed manually with a text editor.}}|param=string|since=L4D2}}
 
{{IO|RunScriptCode|Execute a string of script source code. Quotation marks needed when fired via console. {{warning|Never try to pass string parameters to a script function with this input. It will corrupt the [[VMF]] structure because of the nested quotation marks, which then must be removed manually with a text editor.}}|param=string|since=L4D2}}
{{IO|CallScriptFunction|Execute a game script function. No quotations and parentheses are necessary.|param=string|since=L4D2}}
+
{{IO|CallScriptFunction|Execute a game script function.|param=string|since=L4D2}}
 
}}<noinclude>
 
}}<noinclude>
 
[[Category:Input Templates|Targetname]]
 
[[Category:Input Templates|Targetname]]
 
</noinclude>
 
</noinclude>

Revision as of 18:22, 14 January 2013

Targetname:

Kill
Removes this entity from the world.
KillHierarchy
Removes this entity and all its children from the world.
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.
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.
RunScriptFile  <script> (New with Left 4 Dead 2)
Execute a game script file from disk.
RunScriptCode  <string> (New with Left 4 Dead 2)
Execute a string of script source code. Quotation marks needed when fired via console. Warning: Never try to pass string parameters to a script function with this input. It will corrupt the VMF structure because of the nested quotation marks, which then must be removed manually with a text editor.
CallScriptFunction  <string> (New with Left 4 Dead 2)
Execute a game script function.