Difference between revisions of "SetWeather"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>XzCamoLegend
imported>Gribbleshnibit8
 
Line 4: Line 4:
  |summary = Changes weather, immediately switching to the specified weather. 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. Essentialy the same as [[ForceWeather]]
  |summary = Changes weather, immediately switching to the specified weather. 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. Essentialy the same as [[ForceWeather]]
  |name = SetWeather
  |name = SetWeather
  |alias = SetWeather
  |alias = sw
  |returnType = void
  |returnType = void
  |arguments =  
  |arguments =  
Line 16: Line 16:
   |Optional = y
   |Optional = y
   }}
   }}
  |example = SetWeather MegatonCloudy01
  |example = SetWeather MegatonCloudy01
Sets the current weather to MegatonCloudy01, without overriding the weather change.
  SetWeather WastelandClear 1
  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
  sw rCurrentWeather
Function alias using
}}
}}



Latest revision as of 20:53, 14 January 2017

< [[::Category:Functions|Category:Functions]]

Link to TES4 Construction Set Wiki: SetWeather.

A function included in the GECK version 1.1.0.36.

Description

Changes weather, immediately switching to the specified weather. 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. Essentialy the same as ForceWeather

Syntax

[help]
SetWeather WeatherID:ref WeatherOverrideFlag:int (optional){0, 1} 

Or:

sw WeatherID:ref WeatherOverrideFlag:int (optional){0, 1}

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

Function alias using

See Also