set Weather
Change the current weather.
gameplay.setWeather(Weather.Clear);
Parameters
- weather: the desired weather, like: Weather.Clear
clear
: sunny, no rain or stormsrain
: rainy, no sunthunder
: thunderstorm, lot’s of rain
Example
Bring on a thunderstorm with just a command.
player.onChat("storm", function {
gameplay.setWeather(Weather.Thunder)
});