@setenv_<setting>:<value>=force changes one parameter of the user's environment. RLV first freezes the current environment into a local fixed sky (a copy of the parcel sky, or of the current local day cycle), then edits that copy. The change is visible only to this user.

Syntax

@setenv_<setting>:<value>=force
@setenv_<setting>:<r>;<g>;<b>=force        vector settings ("/" is also accepted as separator)

Parameters

Values are parsed with atof, and no range checking is done. "UI" means the value is scaled to match the old Windlight slider, so it is the number the slider would show.

Setting(s)ValueEffect (Marine)
daytime0–1, or <0<0: return to the region/parcel environment. 0–1: no time change (the code is commented out); it only freezes the current sky locally.
reset(none)Clear the local environment (back to region/parcel).
preset, assetname or UUIDUUID: apply that settings asset. Name: apply the first settings item with that name (case-insensitive) in the inventory's Settings folder or below. Not found: nothing happens.
ambientr|g|b, ambient (r;g;b)UI 0–1Ambient color ×3.
ambientiUI 0–1Rescales ambient so its strongest channel = value ×3.
bluedensityr|g|b|i, bluedensityUI 0–1Blue density ×2 (i = intensity).
bluehorizonr|g|b|i, bluehorizonUI 0–1Blue horizon ×2.
sunmooncolorr|g|b|i, sunmooncolor (alias sunlightcolor…)UI 0–1Sunlight color ×3.
cloudcolorr|g|b|i, cloudcolor0–1Cloud color (unscaled).
cloudx|y|d, cloud (alias clouddensity…)0–1Cloud position/density 1.
clouddetailx|y|d, clouddetail0–1Cloud position/density 2.
cloudcoverage, cloudscale, cloudvariance0–1Direct.
cloudscrollx, cloudscrolly, cloudscroll (x;y)UIScroll rate = value + 10.
hazehorizon0–1Direct.
hazedensityUI 0–1×4.
densitymultiplierUI÷1000.
distancemultiplier, maxaltitudenumberDirect.
sunglowfocusUI 0–0.5glow.b = −5 × value.
sunglowsizeUI 0–2glow.r = (2 − value) × 20.
scenegammaUI 0–20Piecewise-linear remap (0→0.5, 1→1, 5→2, 20→2.9; ≤0→0.25) to match the old gamma curve.
starbrightness, moonbrightness, sunscale, moonscalenumberDirect.
moisturelevel, dropletradius, icelevelnumberEEP rainbow/halo parameters, direct.
sunazim[uth], moonazim[uth]radiansAzimuth, wrapped to −π..π.
sunelev[ation], moonelev[ation]radiansElevation, clamped to ±π/2.
sunmoonposition, eastangle0–1 (fraction of a turn)Legacy Windlight sun position / east angle. Sets the sun and puts the moon diametrically opposite. The other angle is taken from the last value set through RLV.
sunimage/suntexture, moonimage/moontexture, cloudimage/cloudtexturetexture UUIDReplaces the texture.

Specification

Caveats

Examples

llOwnerSay("@setenv_preset:midnight=force");
llOwnerSay("@setenv_hazedensity:0.9=force,setenv_densitymultiplier:0.9=force"); // thick fog
llOwnerSay("@setenv_ambient:0.1;0.0;0.0=force");    // reddish darkness
llOwnerSay("@setenv_reset=force");                  // back to region settings

Notes

See also

Implementation notes

Client differences

Comparison with RLVa

This command works differently from RLVa's @setenv_; see the comparison.