AddOutput: Difference between revisions
Jump to navigation
Jump to search
m (links) |
ThaiGrocer (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
{{wrongtitle|title=AddOutput}} | {{wrongtitle|title=AddOutput}} | ||
{{orphan}} | {{orphan}} | ||
The AddOutput output in [[Hammer]] uses the syntax | The AddOutput output in [[Hammer]] uses the syntax : <code><key> <value></code> '''or''' <output name> <target name>:<input name>:<parameter>:<delay>:<max times to fire (-1 == infinite)> to be used in the parameters field of the [[output]] | ||
<output name> <target name>:<input name>:<parameter>:<delay>:<max times to fire (-1 == infinite)> | |||
to be used in the parameters field of the [[output]] | |||
== | ==Examples== | ||
:Format: <code><key> <value></code> | |||
{ | |||
"classname" "prop_physics" | |||
"targetname" "prop01" | |||
. | |||
. | |||
. | |||
'''"OnHealthChange" "!self,AddOutput,targetname prop9001"''' | |||
} | |||
This changes the target name of the prop. In this case, it is changing it's own name, so !self == prop01. | |||
:Format: <code><output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire, -1 means infinite></code> | |||
{ | { | ||
"classname" "tf_logic_auto" | "classname" "tf_logic_auto" | ||
Line 13: | Line 21: | ||
. | . | ||
. | . | ||
"OnMapSpawn" "team_round_timer_red,AddOutput,OnFinished game_round_win:RoundWin::0:-1,0,-1" | '''"OnMapSpawn" "team_round_timer_red,AddOutput,OnFinished game_round_win:RoundWin::0:-1,0,-1"''' | ||
} | } | ||
This adds an output to an entity with the targetname "team_round_timer_red". |
Revision as of 19:46, 23 September 2011

This article is an orphan, meaning that few or no articles link to it.
You can help by
adding links to this article from other relevant articles.
You can help by

The AddOutput output in Hammer uses the syntax : <key> <value>
or <output name> <target name>:<input name>:<parameter>:<delay>:<max times to fire (-1 == infinite)> to be used in the parameters field of the output
Examples
- Format:
<key> <value>
{ "classname" "prop_physics" "targetname" "prop01" . . . "OnHealthChange" "!self,AddOutput,targetname prop9001" }
This changes the target name of the prop. In this case, it is changing it's own name, so !self == prop01.
- Format:
<output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire, -1 means infinite>
{ "classname" "tf_logic_auto" . . . "OnMapSpawn" "team_round_timer_red,AddOutput,OnFinished game_round_win:RoundWin::0:-1,0,-1" }
This adds an output to an entity with the targetname "team_round_timer_red".