@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.
@setenv_<setting>:<value>=force
@setenv_<setting>:<r>;<g>;<b>=force vector settings ("/" is also accepted as separator)
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) | Value | Effect (Marine) |
|---|---|---|
daytime | 0–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, asset | name or UUID | UUID: 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–1 | Ambient color ×3. |
ambienti | UI 0–1 | Rescales ambient so its strongest channel = value ×3. |
bluedensityr|g|b|i, bluedensity | UI 0–1 | Blue density ×2 (i = intensity). |
bluehorizonr|g|b|i, bluehorizon | UI 0–1 | Blue horizon ×2. |
sunmooncolorr|g|b|i, sunmooncolor (alias sunlightcolor…) | UI 0–1 | Sunlight color ×3. |
cloudcolorr|g|b|i, cloudcolor | 0–1 | Cloud color (unscaled). |
cloudx|y|d, cloud (alias clouddensity…) | 0–1 | Cloud position/density 1. |
clouddetailx|y|d, clouddetail | 0–1 | Cloud position/density 2. |
cloudcoverage, cloudscale, cloudvariance | 0–1 | Direct. |
cloudscrollx, cloudscrolly, cloudscroll (x;y) | UI | Scroll rate = value + 10. |
hazehorizon | 0–1 | Direct. |
hazedensity | UI 0–1 | ×4. |
densitymultiplier | UI | ÷1000. |
distancemultiplier, maxaltitude | number | Direct. |
sunglowfocus | UI 0–0.5 | glow.b = −5 × value. |
sunglowsize | UI 0–2 | glow.r = (2 − value) × 20. |
scenegamma | UI 0–20 | Piecewise-linear remap (0→0.5, 1→1, 5→2, 20→2.9; ≤0→0.25) to match the old gamma curve. |
starbrightness, moonbrightness, sunscale, moonscale | number | Direct. |
moisturelevel, dropletradius, icelevel | number | EEP rainbow/halo parameters, direct. |
sunazim[uth], moonazim[uth] | radians | Azimuth, wrapped to −π..π. |
sunelev[ation], moonelev[ation] | radians | Elevation, clamped to ±π/2. |
sunmoonposition, eastangle | 0–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/cloudtexture | texture UUID | Replaces the texture. |
RestrainedLoveNoSetEnv.@getenv_preset.; (or /).sunmoonposition/eastangle can't be reliably read back, because a sun direction has two equivalent representations. Read both through @getenv_….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
@setenv_daytime:0.5=force does nothing in Marine's EEP code (only negative values do something).moonnbrightness; the code uses moonbrightness. The spec also omits the aliases sunlightcolor*, clouddensity*, *texture, sunazimuth/sunelevation/moonazimuth/moonelevation and asset.force() dispatch with the self-bypass (RRInterface.cpp:2283-2295); forceEnvironment (4153-4989). The local-sky freeze is at 4171-4198. The sun/moon conversion helpers convert_azimuth_and_elevation_to_quat and previousEastAngle/previousSunMoonPosition are at 140-280.force() is ignored by the command dispatcher, so no failure is ever reported.daytime: CoolVL really sets the time of day (setFixedTimeOfDay). In Marine, values ≥ 0 are a no-op.sunmoonposition and eastangle are unimplemented stubs in CoolVL (#if 0).scenegamma: CoolVL passes the value straight through, without Marine's remap.sunglowsize: CoolVL uses value × 20, where Marine uses (2 − value) × 20, so the direction is inverted.icelevel: CoolVL calls setSkyDropletRadius, which looks like a copy-paste bug. So @setenv_icelevel probably changes the droplet radius in CoolVL.preset: CoolVL also searches Windlight presets and accepts a sky|, day| or water| prefix to restrict the search, an extension to the API.This command works differently from RLVa's @setenv_; see the comparison.