weather
namespaceRuntime weather control
Functions
weather.set(name)
Transition naturally to a StaticWeather preset by name
| name | string | StaticWeather prototype name |
returns boolean
weather.snap(name)
Immediately snap to a StaticWeather preset by name
| name | string | StaticWeather prototype name |
returns boolean
weather.clear()
Clear the explicit preset and the wind override, and immediately restore biome-driven weather
returns boolean
weather.wind(speed)
Hold the wind speed at a fixed value, clamped to the planet maximum of 20
| speed | number | Wind speed in meters per second |
returns boolean
weather.wind_clear()
Release the wind override and let the surface environment drive the wind again
returns boolean