Difference between revisions of "00C0"

From GTAMods Wiki
Jump to navigation Jump to search
m
Line 4: Line 4:
 
| p1          = Integer (hour)
 
| p1          = Integer (hour)
 
| p2          = Integer (minute)
 
| p2          = Integer (minute)
| game        = [[GTA 3]], [[Vice City]], [[San Andreas]]
+
| game        = [[GTA 3]], [[Vice City]], [[San Andreas]], [[Liberty City Stories]], [[Vice City Stories]] (005B)
 
| native      = [[SET_TIME_OF_DAY]]
 
| native      = [[SET_TIME_OF_DAY]]
 
}}
 
}}
This sets the current game clock. The hours are from 0 to 23 and the minutes are from 0 to 59. You can set the numbers higher but the game will reset it to the appropriate time, like hour 25 will be hour 1 and minute 65 would be hour 1 and minute 5.
+
This sets the current game clock. The hours are from 0 to 23 and the minutes are from 0 to 59. You can set the numbers higher but the game will reset it to the appropriate time, like hour 25 will be hour 1 and minute 65 would be hour 1 and minute 5. In Vice City (probably all games), this opcode is required to be set at the beginning of the [[main.scm]]. If it is not set, time will speed forward similar in effect to inputting the "faster game clock" cheat.
  
 
==Keywords==
 
==Keywords==

Revision as of 20:54, 21 January 2010

{{{games}}}


Description
Sets the current game clock
Syntax
{{{syntax1}}}
Parameter
Native analog
SET_TIME_OF_DAY

This sets the current game clock. The hours are from 0 to 23 and the minutes are from 0 to 59. You can set the numbers higher but the game will reset it to the appropriate time, like hour 25 will be hour 1 and minute 65 would be hour 1 and minute 5. In Vice City (probably all games), this opcode is required to be set at the beginning of the main.scm. If it is not set, time will speed forward similar in effect to inputting the "faster game clock" cheat.

Keywords

set, current, time, clock

See also

Real Time Clock