Skip to Content

bz_getIdleTime()

Available since 2.4.4

Get the amount of time a player has been idle.

Usage

int bz_getIdleTime(int playerID)
Parameters
int playerID

The player whose idle time to get

Returns

int - The number of seconds a player has been idle. If the player ID does not exist or the player is an observer, it will return -1; otherwise it will return 0 if the player has not been idle.

Other Player Latency Functions

Back to bzfs API Functions

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

Give us Feedback Edit this Page