Versions Compared

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
themeRDark
languagejavascript
linenumberstrue
setWeather(weather);

Parameters

ParameterTypeMandatoryNotesWarzone Version
weatherConstant(tick)

Defines the type of weather to apply:

Child pages (Children Display)
alltrue
depthall
excerpttrue

3.2

Return value

Unknown at present.

Example

Code Block
themeRDark
languagejavascript
linenumberstrue
// make it rain
setWeather(WEATHER_RAIN);
Div
classbox notice ping

Only one weather type can be applied at any given time. When a new weather effect is applied, any existing effect is disabled.

Div
classbox
Availability
Status
colourYellow
title3.2+

Requires:

  • Warzone 3.2 or above
Div
classbox
Contents

Jump to:

Table of Contents
maxLevel5

Div
classbox

See also

Related effects:

Related constants:

Child pages (Children Display)
alltrue
depthall
pageWeather Types
excerpttrue