This wiki was in read-only mode for many years, but can now be edited again. A lot of information will need to be updated.

Bz eGameStartEvent: Difference between revisions

From BZFlagWiki
Jump to navigation Jump to search
Zehra (talk | contribs)
Overview: improved wording
Zehra (talk | contribs)
redirect, since events are in official docs
Tag: New redirect
 
Line 1: Line 1:
{{BZFS_API_Doc}}
#REDIRECT [[Category:BZFS API Docs]]
{{BZFS_API_Events}}
 
==Overview==
The '''bz_eGameStartEvent''' and '''bz_eGameEndEvent''' are API events triggered when a game (i.e., a time- or score-limited match) begins or ends, respectively.
 
==Data==
Both '''bz_eGameStartEvent''' and '''bz_eGameEndEvent''' return the '''bz_GameStartEndEventData_V2''' data class.
 
  {| border="1" cellpadding="20" cellspacing="0"
  !name
  !type
  !value description
  |-
  |eventType   
  |[[Event(API)|bz_eEventType]]
  |bz_eGameStartEvent or bz_eGameStartEvent
  |-
  |playerID
  |int
  |The id of the player who started the countdown. This will be set to 253 if no player information was given.
  |-
  |duration
  |double
  |The duration (in seconds)  of the game.
  |-
  |gameOver
  |bool
  |This will always be set to false in [[bz_eGameStartEvent]]
  |-
  |eventTime
  |double
  |The server time the event occurred (in seconds.)
  |}
 
==Uses==
 
[[Category:BZFS_API_Docs]]
[[Category:BZFS_API_Events]]

Latest revision as of 21:59, 9 November 2025