GetTimeLeft

From The KillerJim Mod Wiki

PlayerProxy::GetTimeLeft

GetTimeLeft.png

Client Only Function - This API call can only be called on clients.

Description

This node will return the time-left before the server moves to the next map in it's cycle. It is most often used if your created a custom scoreboard and wish to display the amount of time left before the next map cycle.

If the value is < 0 then the server is not running any map cycles, and this player will remain on this game-mode indefinitely (or until the server is manually altered by any administrator).

The following is an example of how to convert the seconds returned into a "00:00" formatted string for visualisation.

Error creating thumbnail: File missing
Return Values
1 Integer timeLeft
A value, in seconds, representing the number of seconds left

Playing

Developers

Developer Reference