Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Excerpt |
---|
Sets the weather effect applied to the whole map. |
Syntax
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
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
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
// make it rain setWeather(WEATHER_RAIN); |
Div | ||
---|---|---|
| ||
Only one weather type can be applied at any given time. When a new weather effect is applied, any existing effect is disabled. |
Div | ||||||
---|---|---|---|---|---|---|
| ||||||
Availability
Requires:
|
Div | ||||
---|---|---|---|---|
| ||||
ContentsJump to:
|
Div | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
See alsoRelated effects:
Related constants:
|