logic_game_event

From Valve Developer Community
Jump to: navigation, search
class hierarchy
CLogicGameEvent
CLogicalEntity
CServerOnlyEntity
CBaseEntity

logic_game_event is a point entity available in Left 4 Dead 2 Left 4 Dead 2. This entity allows firing of game events. As of this time, there are no parameters available.

Keyvalues


Targetname:
Name (targetname) <string>
The targetname that other entities refer to this entity by.
Game Event Name (eventName) <string>
Event name (from ModEvents.res) to fire. As of this time, there are no parameters available.

Flags

  •  [1] : userid field with activator

Inputs

FireEvent
Fire the event

Examples in official maps

  • c6m1 and c6m2
Fires foot_locker_opened event when opening a locker
Confirm:used to track achievement for opening foot lockers ?
  • c7m3
Fires generator_started event when starting generator
Confirm:used to check for 3 generators started at once achievement ?