@setenv=n stops the user from changing their local environment, so that environment effects forced by a script (see @setenv_…) stay in place.
@setenv=<y|n>
In Marine's viewer, while @setenv is active:
VertexShaderEnable and WindLightUseAtmosShaders are switched on when the restriction is added, and can't be switched off in Debug Settings;@setenv_…=force from other objects is ignored. The issuing object can still force changes, because its own @setenv is lifted around the change.RestrainedLoveNoSetEnv, @setenv=n is silently not stored (Marine) or blacklisted (CoolVL), and all @setenv_… commands are ignored. Check with @getdebug_restrainedlovenosetenv./setenv=y then /setenv=n to @notify listeners.llOwnerSay("@setenv=n,setenv_preset:midnight=force");
mContainsSetenv (RRInterface.cpp:433). The floater blocking is in RRHelper::preventFloater (145-163). The add hook is at 1272-1285, and returns before storing when sRRNoSetEnv is set.enable_environment param setenv), llviewermenu.cpp, llinventorybridge.cpp, llenvmanager.cpp, and the environment floaters.UseLocalEnvironment and UseParcelEnvironment (mkrlinterface.cpp:1431-1435). Marine instead closes the environment floaters and forces the shader settings on.RestrainedLoveNoSetEnv, CoolVL treats every setenv* command as blacklisted and doesn't even register it in its command table. Marine accepts the command but doesn't store or execute it.This command works differently from RLVa's @setenv; see the comparison.