bz_ePlayerUpdateEvent
This event is called each time a player sends an update to the server
Data Object Type
2.4.0 bz_PlayerUpdateEventData_V1
Parameters
These are the values accessible in the bz_EventData
variable that's made available in the Event
method.
Data Type | Name | Description |
---|---|---|
int |
playerID
|
ID of the player that sent the update |
bz_PlayerUpdateState |
state
|
The original state the tank was in |
bz_PlayerUpdateState |
lastState
|
The second state the tank is currently in to show there was an update |
double |
stateTime
|
The time the state was updated |
double |
eventTime
|
The current server time |
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_PlayerUpdateEventData_V1* dataObject = (bz_PlayerUpdateEventData_V1*)eventData;
// Data
// ---
// (int) playerID - ID of the player that sent the update
// (bz_PlayerUpdateState) state - The original state the tank was in
// (bz_PlayerUpdateState) lastState - The second state the tank is currently in to show there was an update
// (double) stateTime - The time the state was updated
// (double) eventTime - The current server time
Other Player Events
This content is maintained on GitHub. We welcome any feedback and improvements!