014E

From GTAMods Wiki
Jump to navigation Jump to search
III 014E.png
014E in action in GTA III.
VC 014E.png
014E in action in Vice City.

GTA III Vice City San Andreas DISPLAY_ONSCREEN_TIMER


Description

Displays an onscreen timer

Syntax

GTA III 014E: set_timer_to [global var]
Vice City San Andreas 014E: set_timer_to [global var] type [int]

Parameter

[global var]
Global variable containing the time in milliseconds
[int]
Timer direction (see below)

This opcode displays an onscreen timer. In GTA III the timer only counts down but since Vice City timers can also count up. You must use a global variable. Using an integer constant crashes the game and a local variable produces no timer. The value of the global variable is stored in milliseconds but the format of the display is MM:SS. The value of the global variable will be constantly updated by the timer and the timer itself can be updated by assigning a value to the global variable. When counting down, at 10 seconds the timer will produce a noise every second, specifically SFX 336 for GTA III and 370 for Vice City. Once the timer finishes counting down, it will be cleared from the screen. Only one timer can be displayed at a time. Attempting to display another timer while the current timer is in effect will not produce an additional timer. Due to the limitation of the format of the timer, the timer will not display properly above 99:99 but will still keep accurate count. In GTA III and Vice City, switching widescreen on will hide the timer from view. In Vice City, it will also mute the 10-second countdown noise.

Direction Enum
0 TIMER_UP
1 TIMER_DOWN

Keywords

set, display, onscreen, timer, countdown

See also

  • 014F, clears onscreen timer
  • 0396, freezes onscreen timer
  • 03C3, displays timer with string