FindWeather - Weather

Member of: Weather Script

Finds a weather of the given type for the currently occupied region (if applicable) or climate.

SyntaxEdit

Weather Function FindWeather(int auiType) native global

ParametersEdit

  • auiType - The type of weather you want:
    • 0 - Pleasant
    • 1 - Cloudy
    • 2 - Rainy
    • 3 - Snow

Return ValueEdit

The Weather with the highest chance of occurring in the player's currently occupied region (or, alternatively, the climate for the current world space) which has the classification specified by the given parameter.

ExamplesEdit

;Finds a cloudy weather
Weather cloudy = Weather.FindWeather(1)

NotesEdit

The weather settings which correspond to the type can be found on the Precipitation tab in the Weather Dialog in the Creation Kit (under "Weather Classification").

See AlsoEdit

Weather Script