This article's documentation is for Source 2. Click here for more information.

AddOutput (Source 2): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:
{{TabsBar|main=s2|base=AddOutput}}
{{TabsBar|main=s2|base=AddOutput}}
{{stub}}
{{stub}}
{{This is a|[[input]]name=AddOutput|engine=Source 2}} It lets mappers add [[output]]s to an entity at runtime. Unlike Source 1, this is not able to change keyvalues of an entity.
{{This is a|[[input]]|name=AddOutput|engine=Source 2}} It lets mappers add [[output]]s to an entity at runtime. Unlike Source 1, this is not able to change keyvalues of an entity.


Syntax:
Syntax:

Revision as of 07:54, 28 April 2025

English (en)Translate (Translate)

Stub

This article or section is a stub. You can help by expanding it.

AddOutput is an input available in all Source 2 Source 2 games. It lets mappers add outputs to an entity at runtime. Unlike Source 1, 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
PlacementTip.pngExample:
  • ent_fire ent AddOutput OnUser1>target_entity>Kill>>2>-1
  • ent_fire ent AddOutput OnUser2>target2>FireUser4>>>

See also