game.round_timer
Type: TimerThis timer is the round timer; it is displayed on the HUD. By default, it is set to the round time selected in the Custom Game options; however, scripts can assign a value to it. The game will automatically make announcements as the timer's value approaches zero; however, the game will not automatically end the round when the timer hits zero.
The round timer's behavior appears to exist in order to enable Invasion to use it to display the current phase's remaining time.
Example
if game.round_time_limit > 0 and game.round_timer.is_zero() then game.end_round() end
Notes
If you want to implement Sudden Death, you should use the
sudden_death_timerand thegrace_period_timerin conjunction with theround_timer.