Logic game event: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{l4d series point|logic_game_event}} This entity allows firing of game events. As of this time, there are no parameters available. See the [[Hammer_Entity_Report_Dialog|Entity Report]] available in [[Hammer]] for c6m2_bedlam and c6m3_port (part of The Passing campaign) for examples.
{{CD|CLogicGameEvent}}
 
{{this is a|logical entity|name=logic_game_event|game=Left 4 Dead 2}} This entity allows firing of game events. As of this time, there are no parameters available.
__NOTOC__
==Keyvalues==
==Keyvalues==
{{KV|Game Event Name|string|Event name (from ModEvents.res) to fire. As of this time, there are no parameters available.}}
{{KV Targetname}}
{{KV Targetname}}
{{KV|Game Event Name|intn=eventName|string|Event name (from ModEvents.res) to fire. As of this time, there are no parameters available.}}


==Flags==
==Flags==
*1: userid field with activator
{{fl|1|userid field with activator}}


== Inputs ==
== Inputs ==
{{IO|FireEvent|Fire the event}}
{{I|FireEvent|Fire the event}}
{{I Targetname}}
 
== 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 ?}}


== Outputs ==
* c7m3
{{O Targetname}}
:Fires generator_started event when starting generator
:{{confirm|used to check for 3 generators started at once achievement ?}}

Latest revision as of 04:53, 29 April 2025

C++ Class hierarchy
CLogicGameEvent
CLogicalEntity
CServerOnlyEntity
CBaseEntity

logic_game_event is a logical 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

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

Game Event Name (eventName) <string>
Event name (from ModEvents.res) to fire. As of this time, there are no parameters available.

Flags

userid field with activator : [1]

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 ?