Difference between revisions of "00BF"

From GTAMods Wiki
Jump to navigation Jump to search
m
 
Line 1: Line 1:
{{Icon|trilogy}} '''GET_TIME_OF_DAY'''
+
{{OpCode
<hr />
+
| games      = {{Icon|t}}
'''Description'''
+
| command    = GET_TIME_OF_DAY
: Gets the current game time
+
| description = Gets the current game clock
'''Syntax'''
+
| syntax1    = 00BF: [''var1''] = current_time_hours, [''var2''] = current_time_minutes
:00BF: [''var 1''] = current_time_hours, [''var 2''] = current_time_minutes
+
| p1t        = [''var1'']
'''Parameter'''
+
| p1d        = Variable to store game hour, an integer value
: [''var 1'']
+
| p2t        = [''var2'']
:: Variable to store game hours value
+
| p2d        = Variable to store game minute, an integer value
: [''var 2'']
+
| native      = [[GET_TIME_OF_DAY]]
:: Variable to store game minutes value
+
}}
'''Native analog'''
 
: [[GET_TIME_OF_DAY]]
 
  
This stores the values of the current game hours and minutes to the variables. The hours are from 0 to 23 and the minutes are from 0 to 59.  
+
This opcode stores the values of the current game hour and minute to the variables. The hours are from 0 to 23 and the minutes are from 0 to 59.  
  
==Keywords==
+
== Keywords ==
get, current, time, clock
+
get, current, time, clock, day
  
 
== See also ==
 
== See also ==
* [[00C0]] &ndash; sets time of day
+
* {{Icon|t}} [[00C0]], sets time of day
* [[00C1]] &ndash; gets minutes left to time
+
* {{Icon|t}} [[00C1]], gets minutes left to time
* [[Real Time Clock]]
 
 
 
[[Category:OpCodes]]
 

Latest revision as of 04:12, 24 November 2016

GTA III Vice City San Andreas GET_TIME_OF_DAY


Description
Gets the current game clock
Syntax
00BF: [var1] = current_time_hours, [var2] = current_time_minutes
Parameter
[var1]
Variable to store game hour, an integer value
[var2]
Variable to store game minute, an integer value
Native analog
GET_TIME_OF_DAY

This opcode stores the values of the current game hour and minute to the variables. The hours are from 0 to 23 and the minutes are from 0 to 59.

Keywords

get, current, time, clock, day

See also

  • GTA III Vice City San Andreas 00C0, sets time of day
  • GTA III Vice City San Andreas 00C1, gets minutes left to time