Repository navigation
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.
| 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 |
-- 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