logic_eventlistener
Jump to navigation
Jump to search
| logic_eventlistener | |
|---|---|
| Type | Point entity |
| Availability | (in all games since (also in |
| CLogicEventListener |
logic_eventlistener is a point available in all
Source games since
Portal 2. It is also available in
Team Fortress 2.
It can listen to events fired from code and fire and output when it happens.
All event declarations can be found in these files:
resource/gameevents.res resource/modeevents.res resource/demoimportantevents.res resource/serverevents.res resource/hltvevents.res resource/replayevents.res
Keyvalues
- Event Name (eventname) <string>
- The name of the event that you want to listen for.
- Fetch Event Data (fetcheventdata) <boolean> (in all games since
) (also in
) - Copies the game event data to the
event_datatable in the script scope of the listener entity when the event is fired.
- Team Number (teamnum) <integer>
- If set, will only fire its output if the event is generated from someone of the specified team.
- Start Disabled (StartDisabled) <boolean>
- Stay dormant until activated (with the
Enableinput).
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.