Skip to content
lsl.devlsl.devLSL Dev

EnvironmentError

Constants in the EnvironmentError enum.

All constant groups

At a glance, from the LSL definitions
integer ENV_INVALID_AGENT = -4;  // Unable to find the specified agent, or could not find an agent with the specified ID.integer ENV_INVALID_RULE = -5;  // There was an issue with one of the rules, or an attempt was made to change an unknown property.integer ENV_NO_ENVIRONMENT = -3;  // Environmental settings inventory object could not be found, or there is no environment on this parcel to modify.integer ENV_NO_EXPERIENCE_LAND = -7;  // Experience has not been enabled or cannot run on the land.integer ENV_NO_EXPERIENCE_PERMISSION = -2;  // Agent has not granted permission to change environments.integer ENV_NO_PERMISSIONS = -9;  // Script lacks permissions to modify the environment at this location, or an attempt was made to remove altitude track 0 or 1.integer ENV_NOT_EXPERIENCE = -1;  // Attempted to change environments outside an experience, or the script is not running as part of an experience with a valid experience key.integer ENV_OK = 1;  // Agent, parcel, or region will attempt to change the applied environment.integer ENV_THROTTLE = -8;  // Scripts have exceeded the throttle limit.integer ENV_VALIDATION_FAIL = -6;  // Could not validate the environmental settings or values passed.

Constants

ConstantTypeValueDescription
ENV_INVALID_AGENTinteger-4Unable to find the specified agent, or could not find an agent with the specified ID.
ENV_INVALID_RULEinteger-5There was an issue with one of the rules, or an attempt was made to change an unknown property.
ENV_NO_ENVIRONMENTinteger-3Environmental settings inventory object could not be found, or there is no environment on this parcel to modify.
ENV_NO_EXPERIENCE_LANDinteger-7Experience has not been enabled or cannot run on the land.
ENV_NO_EXPERIENCE_PERMISSIONinteger-2Agent has not granted permission to change environments.
ENV_NO_PERMISSIONSinteger-9Script lacks permissions to modify the environment at this location, or an attempt was made to remove altitude track 0 or 1.
ENV_NOT_EXPERIENCEinteger-1Attempted to change environments outside an experience, or the script is not running as part of an experience with a valid experience key.
ENV_OKinteger1Agent, parcel, or region will attempt to change the applied environment.
ENV_THROTTLEinteger-8Scripts have exceeded the throttle limit. Wait and retry the request.
ENV_VALIDATION_FAILinteger-6Could not validate the environmental settings or values passed.