This wiki was in read-only mode for many years, but can now be edited again. A lot of information will need to be updated.

bz_setTimeLimit

From BZFlagWiki
Jump to navigation Jump to 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

Set the countdown timer to 54 seconds remaining.

bz_setTimeLimit(54);