Difference between revisions of "0251"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with "{{Icon|t}} '''STORE_WEATHER''' <hr /> '''Description''' : Saves the weather '''Syntax''' : 0251: store_weather '''Parameter''' : [''none''] This opcode saves the current...")
 
m
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Icon|t}} '''STORE_WEATHER'''
+
{{OpCode
<hr />
+
| games      = {{Icon|3}}
'''Description'''
+
| command    = STORE_WEATHER
: Saves the [[weather]]
+
| description = Saves the [[weather]]
'''Syntax'''
+
| syntax1    = 0251: store_weather
: 0251: store_weather
+
| p1t        = ''none''
'''Parameter'''
+
}}
: [''none'']
 
  
 
This opcode saves the current weather state by storing the values of the following variables:
 
This opcode saves the current weather state by storing the values of the following variables:
* CWeather::OldWeatherType (previous [[Time_cycle#Weather_Types|weather type]])
+
* CWeather::OldWeatherType (previous [[Time cycle#Weather types|weather type]])
 
* CWeather::NewWeatherType (current weather type)
 
* CWeather::NewWeatherType (current weather type)
 
* CWeather::InterpolationValue (interpolation value between weather states)
 
* CWeather::InterpolationValue (interpolation value between weather states)
 
* CWeather::Rain (amount of rain fallen)
 
* CWeather::Rain (amount of rain fallen)
  
Copied values persist during the whole game session and are not reset after starting a new game or loading a [[Saves (GTA 3)|save game]]. The weather state can be restored with [[0252]].
+
Copied values persist while the game is running and are not reset after starting a new game or loading a [[Saves (GTA 3)|save game]]. The weather state can be restored with [[0252]]. This opcode was never called in the original script of GTA III.
  
 
== Keywords ==
 
== Keywords ==
 
store, weather
 
store, weather
 
[[Category:OpCodes]]
 

Latest revision as of 12:53, 13 December 2016

GTA III STORE_WEATHER


Description
Saves the weather
Syntax
0251: store_weather
Parameter
none

This opcode saves the current weather state by storing the values of the following variables:

  • CWeather::OldWeatherType (previous weather type)
  • CWeather::NewWeatherType (current weather type)
  • CWeather::InterpolationValue (interpolation value between weather states)
  • CWeather::Rain (amount of rain fallen)

Copied values persist while the game is running and are not reset after starting a new game or loading a save game. The weather state can be restored with 0252. This opcode was never called in the original script of GTA III.

Keywords

store, weather