Template:I ATargetname

From Valve Developer Community
Jump to navigation Jump to search
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.