Other great resources: Official JS API docs, Scripting Forum

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Current »

Sets the weather effect applied to the whole map.

 

Syntax

setWeather(weather);

Parameters

ParameterTypeMandatoryNotesWarzone Version
weatherConstant(tick)

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:

 

  • No labels