Template:I ATargetname: Difference between revisions
Jump to navigation
Jump to search
KalimandoEnd (talk | contribs) (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| | ||
{{ | {{I|RunScriptFile|Execute a [[VScript]] file from disk, without file extension. The script contents are merged with the script scope of the receiving entity.}} | ||
{{ | {{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.}} | ||
{{ | {{I|CallScriptFunction|Execute a VScript function in the scope of the receiving entity.}} | ||
{{ | {{I|CallPrivateScriptFunction|Execute a VScript function from this entity's private script scope}} | ||
{{ | {{I|CallGlobalScriptFunction|Execute a VScript function from the global script scope}} | ||
{{ | {{I|Kill|Removes this entity from the world.}} | ||
{{ | {{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>.}}}} | ||
{{ | {{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}} | ||
{{ | {{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: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.