@setenv_<name>:<value>=force changes one sky parameter, or applies a whole environment asset. This is a family of commands handled by RLVa's RlvEnvironment extension, not by the behavior dictionary.

Syntax

@setenv_<name>:<value>=force

Settings

Colors are r/g/b floats, vectors x/y, UUIDs in standard form.

NameValueMeaningLegacy component form
ambientcolor r/g/bAmbient color, divided by 3 (the EEP slider scale).yes
bluedensitycolorBlue density, divided by 2.yes
bluehorizoncolorBlue horizon, divided by 2.yes
densitymultiplierfloatDensity multiplier, divided by 0.001.
distancemultiplierfloatDistance multiplier.
dropletradiusfloatSky droplet radius.
hazedensityfloatHaze density.
hazehorizonfloatHaze horizon.
icelevelfloatSky ice level.
maxaltitudefloatMax altitude (max Y).
moisturelevelfloatSky moisture level.
scenegammafloatScene gamma.
cloudcolorcolorCloud color.yes
cloudcoveragefloatCloud coverage (cloud shadow).
clouddensitycolorCloud position/density 1. Legacy name: cloud.as cloud
clouddetailcolorCloud position/density 2 (detail).yes
cloudscalefloatCloud scale.
cloudscrollvector2 x/yCloud scroll rate.x/y only
cloudtextureuuidCloud noise texture.
cloudvariancefloatCloud variance.
moonbrightnessfloatMoon brightness.
moonscalefloatMoon scale.
moontextureuuidMoon texture.
sunglowsizefloatSun glow size: 2 − glow.r / 20.
sunglowfocusfloatSun glow focus: glow.b / −5.
sunlightcolorcolorSun/moon light color, divided by 3. Legacy name: sunmooncolor.as sunmooncolor
sunscalefloatSun scale.
suntextureuuidSun texture.
starbrightnessfloatStar brightness.
sunazimuthfloat (radians)Sun azimuth, 0 to 2π, counter-clockwise from east.
sunelevationfloat (radians)Sun elevation; set values are clamped to −π/2…π/2.
moonazimuthfloat (radians)Moon azimuth.
moonelevationfloat (radians)Moon elevation; clamped like the sun's.
eastanglefloat (fraction of 2π)Legacy WindLight east angle. Setting it moves the sun and puts the moon opposite.
sunmoonpositionfloat (fraction of 2π)Legacy sun/moon position (elevation ÷ 2π). Setting it moves the sun and puts the moon opposite.
daytimefloat 0…1, or −10…1: build a fixed sky from the nearest day cycle (local, then experience, parcel, region) at that position of the cycle. −1: clear the environment back to the shared one. Other values: RLV_RET_FAILED_OPTION.
assetuuidApply a settings asset (sky, water or day cycle) by asset UUID. Null UUID fails.
presetname or uuidDeprecated. Apply a sky from the Library "Environments" folder by name (case-insensitive exact match), or an asset UUID.
daycyclename or uuidDeprecated. As preset, for day cycles.

Legacy component names

If a name is not found, RLVa takes its last character as a component selector and looks the rest up in the legacy table: r or x = red/first, g or y = green/second, b or d = blue/third, i = intensity. Legacy bases: ambient, bluedensity, bluehorizon, cloudcolor, cloud, clouddetail, cloudscroll (first/second component only) and sunmooncolor. Examples: ambientr, bluehorizoni, cloudd, cloudscrollx. Intensity reads as the largest of r, g and b; setting it scales all three proportionally (or sets all three if the new value or the current maximum is 0). Legacy color values use the same ÷3 / ÷2 scaling as the full names.

Specification

Examples

llOwnerSay("@setenv=n");
llOwnerSay("@setenv_daytime:0.5=force");
llOwnerSay("@setenv_ambient:0.1/0.1/0.3=force");
llOwnerSay("@setenv_hazedensity:3=force");

See also

Implementation notes

Comparison with RLV

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