M MY Multiplayer: Wiki
Side
Kind

setWeather

Client

Changes this client's weather, at once or over a blend.

bool setWeather(string weather [, float blendMinutes = -1])

Parameters

NameTypeDescription
weatherstringThe weather's name (case-insensitive) or its id written as text, such as "8".
blendMinutesfloatGame minutes the blend takes. Zero or less switches at once.default -1

Returns

true if the weather exists and was set, false if it does not exist.

Example

setWeather("RAINY", 10)

See also