SetWeather
A function included in the GECK for Fallout 3.
Contents
Description
Changes weather using the games normal switching to the specified weather. The transition time is effected by the Trans Delta setting of the weather or if SetWeatherTransitionTimeOverride has been used to extend the vanilla maximum of 30 seconds. If OverrideWeatherFlag is 1, the weather will not change again until ReleaseWeatherOverride is called. Otherwise, the weather will change back in the normal fashion according to the weather system.
Syntax
SetWeather WeatherID:ref WeatherOverrideFlag:bool
Or:
sw WeatherID:ref WeatherOverrideFlag:bool
Example
SetWeather MegatonCloudy01
Sets the current weather to MegatonCloudy01, without overriding the weather change.
SetWeather WastelandClear 1
Sets the current weather to WastelandClear, but overrides so no other weather can happen until ReleaseWeatherOverride is called.
ref rCurrentWeather set rCurrentWeather to WastelandClear sw rCurrentWeather
Stores WastelandClear in a Reference before it is set
ref rCurrentWeather set rCurrentWeather to GetCurrentWeather SetWeatherTransitionTimeOverride 90 sw rCurrentWeather
Sets the current weather to GetCurrentWeather so it doesn't require explicit REF IDs and uses SetWeatherTransitionTimeOverride to extend the transition period to 90 seconds
See Also
- ReleaseWeatherOverride Releases the override flag and allows the games climate to switch weather as normal
- ForceWeather Switches weather immediately, but it's a jarring change if the player sees it
- SetWeatherTransitionTimeOverride Allows much longer weather transition periods, far above the vanilla Trans Delta maximum of 30 seconds
- GetCurrentWeather Returns the current weather