Arma 3 Scripting

Command in Environment

rainParams

Also available as Markdown and JSON, or read the original wiki page.

Description

Returns currently set RainParticles params, custom or default.

Syntax

rainParams

Returns: Array with [rainDropTexture, texDropCount, minRainDensity, effectRadius, windCoef, dropSpeed, rndSpeed, rndDir, dropWidth, dropHeight, dropColor, lumSunFront, lumSunBack, refractCoef, refractSaturation, snow, dropColorStrong]

Note

See RainParticles for more information.

Examples

Example 1

private _rainParams = rainParams;
// or
rainParams params [
    "_rainDropTexture",
    "_texDropCount",
    "_minRainDensity",
    "_effectRadius",
    "_windCoef",
    "_dropSpeed",
    "_rndSpeed",
    "_rndDir",
    "_dropWidth",
    "_dropHeight",
    "_dropColor",
    "_lumSunFront",
    "_lumSunBack",
    "_refractCoef",
    "_refractSaturation",
    "_snow",
    "_dropColorStrong"
];

Multiplayer

Important

  • Rain particle params are local
  • If used on a dedicated server, this command returns an empty array.

See also

setRain · fogParams · overcast · humidity · wind · forceWeatherChange