Logic eventlistener

From Valve Developer Community
Revision as of 07:25, 30 July 2011 by Barracuda (talk | contribs)
Jump to navigation Jump to search

Template:Base point

Entity description

An entity that can listen to events fired from code and fire and output when it happens.

Keyvalues

Event Name ([todo internal name (i)]) <string>
The name of the event that you want to listen for.
Team Number ([todo internal name (i)]) <choices>
If set, will only fire its output if the event is generated from someone of the specified team.
  • -1 : Don't care
  • 1 : Team 1
  • 2 : Team 2 (ORANGE)
  • 3 : Team 3 (BLUE)
Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).

Inputs

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.

Outputs

OnEventFired
Fired when the event has been detected.