Other great resources: Official JS API docs, Scripting Forum
setWeather()
- Aubergine
Owned by Aubergine
Sets the weather effect applied to the whole map.
Â
Syntax
setWeather(weather);
Parameters
Parameter | Type | Mandatory | Notes | Warzone Version |
---|---|---|---|---|
weather | Constant | Defines the type of weather to apply:
| 3.2 |
Return value
Unknown at present.
Example
// make it rain setWeather(WEATHER_RAIN);
Only one weather type can be applied at any given time. When a new weather effect is applied, any existing effect is disabled.
Availability 3.2+
Requires:
- Warzone 3.2 or above
Contents
Jump to:
See also
Related effects:
- setSunPosition() – sets the position of the sun, which affects shadows on the map
- setSunIntensity() – sets the colour, intensity, etc., of the sun
- setSky() – define sky image, rotation speed and scale
- Skybox Mods – creating custom sky images
Â