Difference between revisions of "00C0"
Jump to navigation
Jump to search
(new template) |
|||
| Line 7: | Line 7: | ||
'''Parameter''' | '''Parameter''' | ||
: [''int 1''] | : [''int 1''] | ||
| − | :: | + | :: Game hours |
: [''int 2''] | : [''int 2''] | ||
| − | :: | + | :: Game minutes |
'''Native analog''' | '''Native analog''' | ||
: [[SET_TIME_OF_DAY]] | : [[SET_TIME_OF_DAY]] | ||
| Line 19: | Line 19: | ||
== See also == | == See also == | ||
| − | [[Real Time Clock]] | + | * [[00BF]] – gets time of day |
| + | * [[00C1]] – gets minutes left to time | ||
| + | * [[Real Time Clock]] | ||
[[Category:OpCodes]] | [[Category:OpCodes]] | ||
Revision as of 18:46, 12 February 2015
Description
- Sets the current game clock
Syntax
- 00C0: set_current_time [int 1] [int 2]
Parameter
- [int 1]
- Game hours
- [int 2]
- Game minutes
Native analog
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
- 00BF – gets time of day
- 00C1 – gets minutes left to time
- Real Time Clock