Skip to content

WeatherType

STBrian edited this page Nov 9, 2026 · 1 revision

WeatherType represents a world weather condition, used with the Game.World.Weather property.

Inherits from EnumItem.

Enum Values (Enums.WeatherType)

Name Description
Enums.WeatherType.Clear Clear skies, no precipitation
Enums.WeatherType.Rain Active rain / snowfall
Enums.WeatherType.Thunder Thunderstorm without rain
Enums.WeatherType.RainThunder Severe thunderstorm with heavy rain and lightning

Example

-- Change weather to Clear
Game.World.Weather = Enums.WeatherType.Clear

-- Check if weather is raining or stormy
if Game.World.Weather == Enums.WeatherType.Rain or Game.World.Weather == Enums.WeatherType.RainThunder then
    Core.Debug.message("It is currently raining!")
end

See also

Clone this wiki locally