This function overrides the environmental settings for a region or a parcel. The owner of the script must have permission to modify the environment on the parcel or be an estate manager to change the entire region.

An override for a given parameter can be set at the region scope or parcel scope. It can also be set for a single sky track, all sky tracks, or both. If an override of a given parameter is specified for both an individual track and all tracks, the individual track's override takes priority.

Note that the list of valid parameters differs from those available for llGetEnvironment.

Syntax

Integer llSetEnvironment( vector position, list params );

Parameters

vector position
The location on the region of the parcel to be changed. Use <-1, -1, z> for the entire region. The z-component specifies which sky track to change, based on elevation. Use z=-1 to set an override on the special 'all tracks' slot.
list params
A list of parameters to change for the parcel or region. Passing an empty list will remove any modifications from previous calls to llSetEnvironment.

Return value

Returns an Integer

Constants

Return Values

ValueConstantDescription
1The parcel or region will attempt to change the applied environment.
ENV_NO_ENVIRONMENT-3There is no environment on this parcel to modify.
ENV_INVALID_RULE-5There was an issue with one of the rules.
ENV_VALIDATION_FAIL-6Unable to validate values passed.
ENV_THROTTLE-8The scripts have exceeded the throttle. Wait and retry the request.
ENV_NO_PERMISSIONS-9The script does not have rights to modify this parcel or region.

Caveats

See also

Functions

Deep notes

History

Date of Release 12/08/2022