Logic eventlistener

From Valve Developer Community
< Es
Jump to: navigation, search
Info content.png
This translated page needs to be updated.
You can help by updating the translation. Also, please make sure the article tries to comply with the alternate languages guide.
English (en)Español (es)Translate (Translate)

Source logic_eventlistener es un punto de entidad disponible en todos los juegos de Source desde Template:Game name. Se puede usar en eventos del código que sean lanzados al suceder.

Note.pngNota: También en Team Fortress 2

Todas las declaraciones de eventos se pueden encontrar en estos archivos:

resource/gameevents.res
resource/modeevents.res
resource/demoimportantevents.res
resource/serverevents.res
resource/hltvevents.res
resource/replayevents.res 
Confirmar:La entidad dejará de funcionar al cargar una partida guardada.

Valores clave

Name (targetname) <string(en)>
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.
Véase también:  Generic Keyvalues, Inputs and Outputs available to all entities

Event Name ([todo internal name (i)]) <string(en)>
The name of the event that you want to listen for.
Fetch Event Data ([todo internal name (i)]) <boolean(en)> (en todos juegos desde Counter-Strike: Global Offensive) (también en Team Fortress 2)
Copies the game event data to the event_data table in the script scope(en) of the listener entity when the event is fired.
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
  • 0: Unassigned !FGD
  • 1: Team 1 Portal 2, Spectators Counter-Strike: Global Offensive!FGD
  • 2: Team 2 (ORANGE) Portal 2, Terrorists Counter-Strike: Global Offensive
  • 3: Team 3 (BLUE) Portal 2, Counter-Terrorists Counter-Strike: Global Offensive
Start Disabled (StartDisabled) <boolean(en)>
Stay dormant until activated (with theEnableinput).

Entradas

EnableDisable:

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

Salidas

OnEventFired
Fired when the event has been detected.