From BZFlagWiki
Jump to: navigation, search

void bz_getPlayerCurrentState (int playerID, bz_PlayerUpdateState& state)

Gets the specified player's current state. This includes information about how fast they're traveling, if they're in the air, if they're rotating, and more.

A player's state changes very frequently (since players are typically on the move, fighting, and jumping, just to name a few), so the data obtained from this method won't be valid for very long.

playerID  -  The id of the player to get the state for
state  -  A bz_PlayerUpdateState to put the information of the player specified by playerID into