AddOutput (Source 2): Difference between revisions
Jump to navigation
Jump to search

Example:
No edit summary |
No edit summary |
||
Line 14: | Line 14: | ||
* <code>ent_fire ent AddOutput OnUser1>target_entity>Kill>>2>-1</code> | * <code>ent_fire ent AddOutput OnUser1>target_entity>Kill>>2>-1</code> | ||
* <code>ent_fire ent AddOutput OnUser2>target2>FireUser4>>></code>}} | * <code>ent_fire ent AddOutput OnUser2>target2>FireUser4>>></code>}} | ||
== See also == | |||
* [[Generic Keyvalues, Inputs and Outputs (Source 2)#Inputs|Inputs available to all entities]] |
Revision as of 01:56, 28 April 2025


This is an input available in all Source 2 games. It lets mappers add outputs to an entity at runtime. As opposed to Source in Source 2 this is not able to change keyvalues of an entity.
Syntax:
outputname>targetname>inputname>parameter>delay>max times to fire (-1 == infinite)
- all five
>
symbols are required even if the fields are left blank - inputname/parameter has no default
- delay if unspecified defaults to 0
- max times to fire defaults to -1

ent_fire ent AddOutput OnUser1>target_entity>Kill>>2>-1
ent_fire ent AddOutput OnUser2>target2>FireUser4>>>