FindWeather - Weather
Jump to navigation
Jump to search
Member of: Weather Script
Finds a weather of the given type for the currently occupied region (if applicable) or climate.
Syntax[edit | edit source]
Weather Function FindWeather(int auiType) native global
Parameters[edit | edit source]
- auiType - The type of weather you want:
- 0 - Pleasant
- 1 - Cloudy
- 2 - Rainy
- 3 - Snow
Return Value[edit | edit source]
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.
Examples[edit | edit source]
;Finds a cloudy weather
Weather cloudy = Weather.FindWeather(1)
Notes[edit | edit source]
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").