Difference between revisions of "01B6"

From GTAMods Wiki
Jump to navigation Jump to search
 
m
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<code>01B6=1,%1d%</code><br>
+
{{OpCode
'''Description''': Sets the weather in the game<br>
+
| games      = {{Icon|t}}
'''Parameter 1''': Flag<br>
+
| command    = FORCE_WEATHER_NOW
'''Supports''': GTA3, Vice City, San Andreas<br>
+
| description = Sets the [[weather]] type immediately
 +
| syntax1    = 01B6: set_weather [''int'']
 +
| syntax2    = set_weather [''int'']
 +
| p1t        = [''int'']
 +
| p1d        = [[Time cycle#Weather types|Weather type]]
 +
}}
  
==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]].
{|
 
! 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==
+
== Keywords ==
weather
+
set, force, weather, now
 
 
[[Category:OpCodes]]
 

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