Difference between revisions of "00C0"

From GTAMods Wiki
Jump to navigation Jump to search
m
(new template)
Line 1: Line 1:
{{OpCode
+
{{Icon|trilogy}} '''SET_TIME_OF_DAY'''
| ini        = 00C0=2,%1d% %2d%
+
<hr />
| description = Sets the current game clock
+
'''Description'''
| p1          = Integer (hour)
+
: Sets the current game clock
| p2          = Integer (minute)
+
'''Syntax'''
| game        = [[GTA 3]], [[Vice City]], [[San Andreas]], [[Liberty City Stories]], [[Vice City Stories]] (005B)
+
: 00C0: set_current_time [''int 1''] [''int 2'']
| native      = [[SET_TIME_OF_DAY]]
+
'''Parameter'''
}}
+
: [''int 1'']
 +
:: Hours value
 +
: [''int 2'']
 +
:: Minutes value
 +
'''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 must be set at the beginning of the <code>[[main.scm]]</code>. If it is not set, time will speed forward similar in effect to inputting the "faster game clock" cheat.
 
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 must be set at the beginning of the <code>[[main.scm]]</code>. If it is not set, time will speed forward similar in effect to inputting the "faster game clock" cheat.
  
Line 14: Line 20:
 
== See also ==
 
== See also ==
 
[[Real Time Clock]]
 
[[Real Time Clock]]
 +
 +
[[Category:OpCodes]]

Revision as of 18:30, 12 February 2015

GTA III Vice City San Andreas SET_TIME_OF_DAY


Description

Sets the current game clock

Syntax

00C0: set_current_time [int 1] [int 2]

Parameter

[int 1]
Hours value
[int 2]
Minutes value

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 must 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