Difference between revisions of "01B6"

From GTAMods Wiki
Jump to navigation Jump to search
m
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{OpCode
 
{{OpCode
| ini        = 01B6=1,%1d%
+
| games      = {{Icon|t}}
| description = Sets the [[Timecyc.dat|weather]] in the game
+
| command    = FORCE_WEATHER_NOW
| p1          = Flag (weather ID)
+
| description = Sets the [[weather]] type immediately
| game        = [[GTA 3]], [[Vice City]], [[San Andreas]]
+
| syntax1    = 01B6: set_weather [''int'']
 +
| syntax2    = set_weather [''int'']
 +
| p1t        = [''int'']
 +
| p1d        = [[Time cycle#Weather types|Weather type]]
 
}}
 
}}
==List of Weather IDs==
 
===GTA 3===
 
{|{{Prettytable}}
 
! ID
 
! Description
 
|-
 
| 0
 
| Sunny
 
|-
 
| 1
 
| Cloudy
 
|-
 
| 2
 
| Rainy
 
|-
 
| 3
 
| Foggy
 
|}
 
  
===Vice City===
+
This opcode sets the weather type immediately. Values outside the possible range of weather types up to 255 produce weird results. The value set with this opcode is saved in block 0 of the [[Savegame|save file]].
{|{{Prettytable}}
 
! ID
 
! Description
 
|-
 
| 0
 
| Sunny
 
|-
 
| 1
 
| Cloudy
 
|-
 
| 2
 
| Rainy
 
|-
 
| 3
 
| Foggy
 
|-
 
| 4
 
| Extra Sunny
 
|-
 
| 5
 
| Rainy (hurricane)
 
|-
 
| 6
 
| Extra Colors
 
|}
 
  
===San Andreas===
+
== Keywords ==
{|{{Prettytable}}
+
set, force, weather, now
! ID
 
! Description
 
|-
 
| 0
 
| Extra Sunny Los Santos
 
|-
 
| 1
 
| Sunny Los Santos
 
|-
 
| 2
 
| Extra Sunny Smoggy Los Santos
 
|-
 
| 3
 
| Sunny Smoggy Los Santos
 
|-
 
| 4
 
| Cloudy Los Santos
 
|-
 
| 5
 
| Sunny San Fierro
 
|-
 
| 6
 
| Extra Sunny San Fierro
 
|-
 
| 7
 
| Cloudy San Fierro
 
|-
 
| 8
 
| Rainy San Fierro
 
|-
 
| 9
 
| Foggy San Fierro
 
|-
 
| 10
 
| Sunny Las Venturas
 
|-
 
| 11
 
| Extra Sunny Las Venturas
 
|-
 
| 12
 
| Cloudy Las Venturas
 
|-
 
| 13
 
| Extra Sunny Countryside
 
|-
 
| 14
 
| Sunny Countryside
 
|-
 
| 15
 
| Cloudy Countryside
 
|-
 
| 16
 
| Rainy Countryside
 
|-
 
| 17
 
| Extra Sunny Desert
 
|-
 
| 18
 
| Sunny Desert
 
|-
 
| 19
 
| Sandstorm Desert
 
|-
 
| 20
 
| Underwater
 
|-
 
| 21
 
| Extra Colors
 
|-
 
| 22
 
| Extra Colors
 
|}
 
 
 
==Keywords==
 
set, weather
 

Latest revision as of 22:54, 22 April 2017

GTA III Vice City San Andreas FORCE_WEATHER_NOW


Description
Sets the weather type immediately
Syntax
01B6: set_weather [int]
set_weather [int]
Parameter
[int]
Weather type

This opcode sets the weather type immediately. Values outside the possible range of weather types up to 255 produce weird results. The value set with this opcode is saved in block 0 of the save file.

Keywords

set, force, weather, now