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.
Integer llSetEnvironment( vector position, list params );
Returns an Integer
Return Values
| Value | Constant | Description |
|---|---|---|
| 1 | The parcel or region will attempt to change the applied environment. | |
| ENV_NO_ENVIRONMENT | -3 | There is no environment on this parcel to modify. |
| ENV_INVALID_RULE | -5 | There was an issue with one of the rules. |
| ENV_VALIDATION_FAIL | -6 | Unable to validate values passed. |
| ENV_THROTTLE | -8 | The scripts have exceeded the throttle. Wait and retry the request. |
| ENV_NO_PERMISSIONS | -9 | The script does not have rights to modify this parcel or region. |
Date of Release 12/08/2022