014E
Description
- Displays an onscreen timer
Syntax
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[1] |
---|---|
0 | TIMER_UP |
1 | TIMER_DOWN |
- ^ Enums are from Wesser's GTA III/VC definitions.
Keywords
set, display, onscreen, timer, countdown