Skip to content
lsl.devlsl.devLSL Dev

Constants in the SitError enum.

All constant groups

At a glance, from the LSL definitions
integer SIT_INVALID_AGENT = -4;  // Sit error code indicating that the specified agent/avatar ID could not be found or is invalid.integer SIT_INVALID_LINK = -5;  // Sit error code indicating that the link ID does not specify a valid prim, is not found, or resolves to multiple prims.integer SIT_INVALID_OBJECT = -7;  // Sit error code returned when attempting to force an avatar to sit on an invalid target (such as an attachment) that cannot be sat upon.integer SIT_NO_ACCESS = -6;  // Sit error code indicating that the avatar lacks access to the parcel where the target prim/linkset is located.integer SIT_NO_EXPERIENCE_PERMISSION = -2;  // Sit error code indicating that the agent has not granted experience permissions to force sits.integer SIT_NO_SIT_TARGET = -3;  // Sit error code indicating that no open or available sit target could be found in the linkset.integer SIT_NOT_EXPERIENCE = -1;  // Sit error code returned if the script is not running within a valid experience, lacks a valid experience key, or the experience is not permitted at the current location.integer SIT_OK = 1;  // Sit error code indicating that the agent was seated successfully.

Constants

ConstantTypeValueDescription
SIT_INVALID_AGENTinteger-4Sit error code indicating that the specified agent/avatar ID could not be found or is invalid.
SIT_INVALID_LINKinteger-5Sit error code indicating that the link ID does not specify a valid prim, is not found, or resolves to multiple prims.
SIT_INVALID_OBJECTinteger-7Sit error code returned when attempting to force an avatar to sit on an invalid target (such as an attachment) that cannot be sat upon.
SIT_NO_ACCESSinteger-6Sit error code indicating that the avatar lacks access to the parcel where the target prim/linkset is located.
SIT_NO_EXPERIENCE_PERMISSIONinteger-2Sit error code indicating that the agent has not granted experience permissions to force sits.
SIT_NO_SIT_TARGETinteger-3Sit error code indicating that no open or available sit target could be found in the linkset.
SIT_NOT_EXPERIENCEinteger-1Sit error code returned if the script is not running within a valid experience, lacks a valid experience key, or the experience is not permitted at the current location.
SIT_OKinteger1Sit error code indicating that the agent was seated successfully.