Template:I Source 2 Targetname: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{ScrollBox|title=Source 2 Targetname| {{IO|Kill|Removes this entity from the world.}} {{IO|KillHierarchy|Removes this entity and all its children from the world.}} {{IO|AddOu...")
 
m (→‎top: Substituted IO templates)
 
Line 1: Line 1:
{{ScrollBox|title=Source 2 Targetname|
{{ScrollBox|title=Source 2 Targetname|
{{IO|Kill|Removes this entity from the world.}}
{{I|Kill|Removes this entity from the world.}}
{{IO|KillHierarchy|Removes this entity and all its children from the world.}}
{{I|KillHierarchy|Removes this entity and all its children from the world.}}
{{IO|AddOutput|Evaluates a keyvalue/output on this entity. It can be potentially very dangerous, use with care.<br/>Format: <code><key> <value></code><br/>Format: <code><output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire, -1 means infinite></code>|param=string}}
{{I|AddOutput|Evaluates a keyvalue/output on this entity. It can be potentially very dangerous, use with care.<br/>Format: <code><key> <value></code><br/>Format: <code><output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire, -1 means infinite></code>|param=string}}
{{IO|FireUser1|to=FireUser4|Fire the <code>OnUser</code> outputs; see [[User Inputs and Outputs]].}}
{{I|FireUser1|to=FireUser4|Fire the <code>OnUser</code> outputs; see [[User Inputs and Outputs]].}}


{{IO|RunScriptFile|Execute a [[VScript]] file from disk, without file extension. The script contents are merged with the script scope of the receiving entity.|param=string}}
{{I|RunScriptFile|Execute a [[VScript]] file from disk, without file extension. The script contents are merged with the script scope of the receiving entity.|param=string}}
{{IO|RunScriptCode|Execute a string of VScript source code in the scope of the entity receiving the input.|param=string}}
{{I|RunScriptCode|Execute a string of VScript source code in the scope of the entity receiving the input.|param=string}}
{{IO|CallScriptFunction|Call a script function.|param=string}}
{{I|CallScriptFunction|Call a script function.|param=string}}
{{IO|CallPrivateScriptFunction|Calls a script function from this entity's private script scope.|param=string}}
{{I|CallPrivateScriptFunction|Calls a script function from this entity's private script scope.|param=string}}
{{IO|CallGlobalScriptFunction|Calls a script function in the global script scope.|param=string}}}}
{{I|CallGlobalScriptFunction|Calls a script function in the global script scope.|param=string}}}}
<noinclude>
<noinclude>
[[Category:Input Templates|Source 2 Targetname]]
[[Category:Input Templates|Source 2 Targetname]]
</noinclude>
</noinclude>

Latest revision as of 12:56, 21 April 2025

Source 2 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.


RunScriptFile <string>
Execute a VScript file from disk, without file extension. The script contents are merged with the script scope of the receiving entity.
RunScriptCode <string>
Execute a string of VScript source code in the scope of the entity receiving the input.
CallScriptFunction <string>
Call a script function.
CallPrivateScriptFunction <string>
Calls a script function from this entity's private script scope.
CallGlobalScriptFunction <string>
Calls a script function in the global script scope.