Skip to Content

bz_eGameEndEvent

This event is called each time a game ends

Data Object Type

2.4.4 bz_GameStartEndEventData_V2

Deprecated Types

These data object types have been deprecated in favor of more recent versions, which contain more or corrected information.

  • 2.4.0 bz_GameStartEndEventData_V1

Parameters

These are the values accessible in the bz_EventData variable that's made available in the Event method.

Data Type Name Description
double duration

The duration (in seconds) of the game.

int playerID

The player who triggered the event. If it was triggered automatically, this value will be the server ID (253) (available since V2 of the event)

bool gameOver

Set to true if the game was ended with /gameover or /superkill or via the API (available since V2 of the event)

double eventTime

The server time the event occurred (in seconds).

Plug-in Usage

Here's a list of plug-ins part of the official distribution that makes use of this event:

Plug-in Example

This block of code can be used to get started when implementing the Event() function of your plug-in.

bz_GameStartEndEventData_V2* dataObject = (bz_GameStartEndEventData_V2*)eventData;

// Data
// ---
// (double)       duration - The duration (in seconds) of the game.
// (int)          playerID - The player who triggered the event. If it was triggered automatically, this value will be the server ID (253)
// (bool)         gameOver - Set to true if the game was ended with `/gameover` or `/superkill` or via the API
// (double)       eventTime - The server time the event occurred (in seconds).

Other Countdown Timer Events

Back to bzfs API Events

This content is maintained on GitHub. We welcome any feedback and improvements!

Give us Feedback Edit this Page