@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.
@setenv_<name>:<value>=force
Colors are r/g/b floats, vectors x/y, UUIDs in standard form.
| Name | Value | Meaning | Legacy component form |
|---|---|---|---|
ambient | color r/g/b | Ambient color, divided by 3 (the EEP slider scale). | yes |
bluedensity | color | Blue density, divided by 2. | yes |
bluehorizon | color | Blue horizon, divided by 2. | yes |
densitymultiplier | float | Density multiplier, divided by 0.001. | |
distancemultiplier | float | Distance multiplier. | |
dropletradius | float | Sky droplet radius. | |
hazedensity | float | Haze density. | |
hazehorizon | float | Haze horizon. | |
icelevel | float | Sky ice level. | |
maxaltitude | float | Max altitude (max Y). | |
moisturelevel | float | Sky moisture level. | |
scenegamma | float | Scene gamma. | |
cloudcolor | color | Cloud color. | yes |
cloudcoverage | float | Cloud coverage (cloud shadow). | |
clouddensity | color | Cloud position/density 1. Legacy name: cloud. | as cloud |
clouddetail | color | Cloud position/density 2 (detail). | yes |
cloudscale | float | Cloud scale. | |
cloudscroll | vector2 x/y | Cloud scroll rate. | x/y only |
cloudtexture | uuid | Cloud noise texture. | |
cloudvariance | float | Cloud variance. | |
moonbrightness | float | Moon brightness. | |
moonscale | float | Moon scale. | |
moontexture | uuid | Moon texture. | |
sunglowsize | float | Sun glow size: 2 − glow.r / 20. | |
sunglowfocus | float | Sun glow focus: glow.b / −5. | |
sunlightcolor | color | Sun/moon light color, divided by 3. Legacy name: sunmooncolor. | as sunmooncolor |
sunscale | float | Sun scale. | |
suntexture | uuid | Sun texture. | |
starbrightness | float | Star brightness. | |
sunazimuth | float (radians) | Sun azimuth, 0 to 2π, counter-clockwise from east. | |
sunelevation | float (radians) | Sun elevation; set values are clamped to −π/2…π/2. | |
moonazimuth | float (radians) | Moon azimuth. | |
moonelevation | float (radians) | Moon elevation; clamped like the sun's. | |
eastangle | float (fraction of 2π) | Legacy WindLight east angle. Setting it moves the sun and puts the moon opposite. | |
sunmoonposition | float (fraction of 2π) | Legacy sun/moon position (elevation ÷ 2π). Setting it moves the sun and puts the moon opposite. | |
daytime | float 0…1, or −1 | 0…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. | |
asset | uuid | Apply a settings asset (sky, water or day cycle) by asset UUID. Null UUID fails. | |
preset | name or uuid | Deprecated. Apply a sky from the Library "Environments" folder by name (case-insensitive exact match), or an asset UUID. | |
daycycle | name or uuid | Deprecated. As preset, for day cycles. |
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.
RLV_RET_FAILED_LOCK if an object other than the sender holds @setenv.@setenv, the user's own local environment (ENV_LOCAL, "personal lighting"); if somebody does, RLVa's private copy in ENV_EDIT, which is discarded when @setenv is released.@setenv_… therefore freezes an animating day cycle.RLV_RET_FAILED_PARAM (not FAILED_OPTION). An unknown name is not handled and gives RLV_RET_FAILED_UNKNOWN. The part after setenv_ must be at least 3 characters long.RestrainedLoveNoSetEnv only blocks the @setenv restriction; it does not block these force commands. Confirm in-world.eastangle before sunmoonposition is always correct; the reverse only for positions between −0.25 and 0.25 (see the comment block in rlvenvironment.cpp).llOwnerSay("@setenv=n");
llOwnerSay("@setenv_daytime:0.5=force");
llOwnerSay("@setenv_ambient:0.1/0.1/0.3=force");
llOwnerSay("@setenv_hazedensity:3=force");
rlvenvironment.cpp:190-463. Dispatch (prefix, lock, legacy fallback): rlvenvironment.cpp:502-547. Target env/sky: rlvenvironment.cpp:470-498. Parsing and scaling helpers: rlvenvironment.cpp:549-728.RlvEnvironment::onForceCommand through notifyCommandHandlers (rlvhandler.cpp:438-450, 2900-2902); the handler is registered first, before RlvExtGetSet (rlvhandler.cpp:1563-1564).RlvActions::canChangeEnvironment, rlvactions.cpp:403-407.This command works differently from RLV's @setenv_; see the comparison.