bz_setTimeLimit

From BZFlagWiki
Jump to: navigation, search

bool bz_setTimeLimit (float timeLimit)


Sets the countdown timer to a new value. Note: Any players that retrieved the countdown value before this function is called will not see the changes until they rejoin or a new countdown is triggered via bz_startCountdown().

Parameters:
timeLimit  -  The amount of time in seconds to set the countdown timer to.
Returns:
Whether or not the time limit was able to be set.


Example[edit]

Set the countdown timer to 54 seconds remaining.

bz_setTimeLimit(54);