Difference between revisions of "SetWeather"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Geckbot
m (Robot: Automated text replacement (-\[\[Category:(.*?)Functions\]\] +Category:\1Functions\nCategory:\1Functions (GECK 1.0)))
imported>Gribbleshnibit8
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function
|CSWikiPage = SetWeather
|origin = GECK1
|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
|alias = sw
|returnType = void
|arguments =
  {{FunctionArgument
  |Name = WeatherID
  |Type = ref
  }}{{FunctionArgument
  |Name = WeatherOverrideFlag
  |Type = int (optional)
  |Value = 0, 1
  |Optional = y
  }}
|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==
*[[ReleaseWeatherOverride]]
*[[ForceWeather]]


[[Category:Functions]]
[[Category:Functions]]
[[Category:Functions (GECK 1.0)]]
[[Category:Functions (GECK 1.1)]]
 
<!-- Begin Search Terms
Force
Weather
End Search Terms -->

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