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
Xalendare (talk | contribs)
Added event description.
(No difference)

Revision as of 04:02, 8 May 2009

BZFS API Documentation This page contains part of the BZFS API documentation for use by Plug-ins on the BZFS server.

BZFS Event. This page documents a BZFS event that is called by the game server to notify plug-ins of various actions and state changes in the game world.


Overview

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_V1 data class.

name type value description
eventType bz_eEventType bz_eGameStartEvent or bz_eGameEndEvent
duration double The duration (in seconds) of the game.
eventTime double The server time the event occurred (in seconds.)

Uses