Difference between revisions of "01B6"

From GTAMods Wiki
Jump to navigation Jump to search
(added images for Vice City)
m
 
(8 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]]
 
}}
 
}}
This opcode instantly changes the weather in the game. Values higher than the ones listed can be used but will have weird results, especially at higher values.
 
  
==List of weather IDs==
+
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]].
===GTA 3===
 
{|{{Prettytable}}
 
! ID
 
! Description
 
|-
 
| 0
 
| Sunny
 
|-
 
| 1
 
| Cloudy
 
|-
 
| 2
 
| Rainy
 
|-
 
| 3
 
| Foggy
 
|}
 
  
===Vice City===
+
== Keywords ==
{|{{Prettytable}}
+
set, force, weather, now
! ID
 
! Description
 
! Image
 
|-
 
| 0
 
| Sunny
 
| http://img.photobucket.com/albums/v41/spaceeinstein/Weather0.png
 
|-
 
| 1
 
| Cloudy
 
| http://img.photobucket.com/albums/v41/spaceeinstein/Weather1.png
 
|-
 
| 2
 
| Rainy
 
| http://img.photobucket.com/albums/v41/spaceeinstein/Weather2.png
 
|-
 
| 3
 
| Foggy
 
| http://img.photobucket.com/albums/v41/spaceeinstein/Weather3.png
 
|-
 
| 4
 
| Extra Sunny
 
| http://img.photobucket.com/albums/v41/spaceeinstein/Weather4.png
 
|-
 
| 5
 
| Rainy (hurricane)
 
| http://img.photobucket.com/albums/v41/spaceeinstein/Weather5.png
 
|-
 
| 6
 
| Extra Colors
 
|
 
|}
 
 
 
===San Andreas===
 
{|{{Prettytable}}
 
! 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