Skip to Content

bz_eCaptureEvent

This event is called each time a team's flag has been captured

Data Object Type

2.4.0 bz_CTFCaptureEventData_V1

Parameters

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

Data Type Name Description
bz_eTeamType teamCapped

The team whose flag was captured.

bz_eTeamType teamCapping

The team who did the capturing.

int playerCapping

The player who captured the flag.

float[3] pos

The world position(X,Y,Z) where the flag has been captured

float rot

The rotational orientation of the capturing player

double eventTime

This value is the local server time of the event.

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_CTFCaptureEventData_V1* dataObject = (bz_CTFCaptureEventData_V1*)eventData;

// Data
// ---
// (bz_eTeamType) teamCapped - The team whose flag was captured.
// (bz_eTeamType) teamCapping - The team who did the capturing.
// (int)          playerCapping - The player who captured the flag.
// (float[3])     pos - The world position(X,Y,Z) where the flag has been captured
// (float)        rot - The rotational orientation of the capturing player
// (double)       eventTime - This value is the local server time of the event.

Other Capture The Flag Events

Back to bzfs API Events

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

Give us Feedback Edit this Page