0251

From GTAMods Wiki
Revision as of 13:15, 9 August 2015 by Seemann (talk | contribs) (Created page with "{{Icon|t}} '''STORE_WEATHER''' <hr /> '''Description''' : Saves the weather '''Syntax''' : 0251: store_weather '''Parameter''' : [''none''] This opcode saves the current...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

GTA III Vice City San Andreas 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 during the whole game session and are not reset after starting a new game or loading a save game. The weather state can be restored with 0252.

Keywords

store, weather