Template:I ATargetname: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created template variation of targetname for new alyx i/o)
 
m (→‎top: Substituted IO templates)
 
Line 1: Line 1:
{{ScrollBox|title=AlyxTargetName|noscroll=true|
{{ScrollBox|title=AlyxTargetName|noscroll=true|
{{IO|RunScriptFile|Execute a [[VScript]] file from disk, without file extension. The script contents are merged with the script scope of the receiving entity.}}
{{I|RunScriptFile|Execute a [[VScript]] file from disk, without file extension. The script contents are merged with the script scope of the receiving entity.}}


{{IO|RunScriptCode|Execute a string of VScript source code in the scope of the entity receiving the input. String quotation may be needed when fired via console.}}
{{I|RunScriptCode|Execute a string of VScript source code in the scope of the entity receiving the input. String quotation may be needed when fired via console.}}


{{IO|CallScriptFunction|Execute a VScript function in the scope of the receiving entity.}}
{{I|CallScriptFunction|Execute a VScript function in the scope of the receiving entity.}}


{{IO|CallPrivateScriptFunction|Execute a VScript function from this entity's private script scope}}
{{I|CallPrivateScriptFunction|Execute a VScript function from this entity's private script scope}}


{{IO|CallGlobalScriptFunction|Execute a VScript function from the global script scope}}
{{I|CallGlobalScriptFunction|Execute a VScript function from the global script scope}}


{{IO|Kill|Removes this entity from the world.}}
{{I|Kill|Removes this entity from the world.}}


{{IO|KillHierarchy|Removes this entity and its children from the world. {{note|Entities already remove orphaned children upon being removed, but this input removes all children on the same frame, being marginally faster than <code>Kill</code>.}}}}
{{I|KillHierarchy|Removes this entity and its children from the world. {{note|Entities already remove orphaned children upon being removed, but this input removes all children on the same frame, being marginally faster than <code>Kill</code>.}}}}


{{IO|[[AddOutput]]|Adds a keyvalue/output to this entity. It can be potentially very dangerous, use with care.<br/>''KV'' Format: <code><key> <value></code><br/>''I/O'' Format: <code><output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire, -1 means infinite></code>|param=string}}
{{I|[[AddOutput]]|Adds a keyvalue/output to this entity. It can be potentially very dangerous, use with care.<br/>''KV'' Format: <code><key> <value></code><br/>''I/O'' 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]].}}
<noinclude>
<noinclude>
[[Category:Input Templates|Targetname]]
[[Category:Input Templates|Targetname]]
</noinclude>}}
</noinclude>}}

Latest revision as of 12:50, 21 April 2025

AlyxTargetName:
RunScriptFile
Execute a VScript file from disk, without file extension. The script contents are merged with the script scope of the receiving entity.


RunScriptCode
Execute a string of VScript source code in the scope of the entity receiving the input. String quotation may be needed when fired via console.


CallScriptFunction
Execute a VScript function in the scope of the receiving entity.


CallPrivateScriptFunction
Execute a VScript function from this entity's private script scope


CallGlobalScriptFunction
Execute a VScript function from the global script scope


Kill
Removes this entity from the world.


KillHierarchy
Removes this entity and its children from the world.
Note.pngNote:Entities already remove orphaned children upon being removed, but this input removes all children on the same frame, being marginally faster than Kill.


AddOutput <string>
Adds a keyvalue/output to this entity. It can be potentially very dangerous, use with care.
KV Format: <key> <value>
I/O 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.