Logic eventlistener

From Valve Developer Community
Revision as of 04:14, 11 May 2011 by Barracuda (talk | contribs) (Created page with '{{portal2 point|logic_eventlistener}} ==Entity description== An entity that can listen to events fired from code and fire and output when it happens. ==Keyvalues== {{KV Targetn…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Portal2 point

Entity description

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

Keyvalues

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

Event Name ([todo internal name (i)]) <string>
The name of the event that you want to listen for.
Start Enabled ([todo internal name (i)]) <boolean>
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)

Inputs

Enable
Enable the logic_measure_movement.
Disable
Disable the logic_measure_movement.

Outputs

OnEventFired
Fired when the event has been detected.