Arma 3 Scripting

nextWeatherChange

  • Arma 3 v0.50
  • First in Armed Assault v1.00

Command · Markdown · JSON · original wiki page

Description

Return the remaining time (in seconds) over which the current weather change will occur.
When a weather change finishes, the game engine will automatically generate a new random weather change over a realistic time period (minimum of 90 minutes).

Syntax

nextWeatherChange

Returns: Number

Examples

Example 1

_seconds = nextWeatherChange;

Multiplayer

Each client and the server can have differing weather.

See also

fog · fogForecast · setFog · overcast · setOvercast · overcastForecast · forceWeatherChange

Community notes

OverlordZorn

Tested in Arma 3 v2.22: setFog sets this timer to its transition time, while setOvercast leaves it unchanged. When it reaches 0, the engine rolls a new weather forecast.