Skip to content
lsl.devlsl.devLSL Dev

ObjectDetailsParam

Constants in the ObjectDetailsParam enum.

All constant groups

At a glance, from the LSL definitions
// Identity and ownershipOBJECT_NAME → string name  // avatars: legacy nameOBJECT_DESC → string desc  // avatars: emptyOBJECT_OWNER → key ownerOBJECT_GROUP → key groupOBJECT_CREATOR → key creatorOBJECT_LAST_OWNER_ID → key last_owner  // if knownOBJECT_REZZER_KEY → key rezzerOBJECT_ROOT → key rootOBJECT_LINK_NUMBER → integer link_numberOBJECT_CREATION_TIME → string timestampOBJECT_REZ_TIME → string timeOBJECT_PERMS → integer base, integer owner, integer group, integer everyone, integer next_owner  // PERM_* masksOBJECT_PERMS_COMBINED → integer base, integer owner, integer group, integer everyone, integer next_owner  // PERM_* masks, including the contents// Position and movementOBJECT_POS → vector pos  // region coordinatesOBJECT_ROT → rotation rotOBJECT_SCALE → vector scaleOBJECT_VELOCITY → vector velOBJECT_OMEGA → vector omegaOBJECT_MASS → float mass  // whole linksetOBJECT_ATTACHED_POINT → integer attach_point  // ATTACH_*// Object propertiesOBJECT_PHYSICS → integer booleanOBJECT_PHANTOM → integer booleanOBJECT_TEMP_ON_REZ → integer booleanOBJECT_TEMP_ATTACHED → integer booleanOBJECT_VOLUME_DETECT → integer isVolumeDetectOBJECT_LOCKED → integer isLockedOBJECT_CLICK_ACTION → integer action  // CLICK_ACTION_*OBJECT_MATERIAL → integer material  // PRIM_MATERIAL_*OBJECT_PATHFINDING_TYPE → integer pathfinding_type  // OPT_*OBJECT_TEXT → string text  // floating textOBJECT_TEXT_COLOR → vector colorOBJECT_TEXT_ALPHA → float alphaOBJECT_SIT_COUNT → integer count  // agents sitting on any linkOBJECT_SELECT_COUNT → integer count  // agents selecting any link// AvatarsOBJECT_GROUP_TAG → string textOBJECT_ACCOUNT_LEVEL → integer levelOBJECT_RENDER_WEIGHT → integer weightOBJECT_HOVER_HEIGHT → float heightOBJECT_BODY_SHAPE_TYPE → float body_shape  // sex of the shape, 0.0 to 1.0OBJECT_ATTACHED_SLOTS_AVAILABLE → integer countOBJECT_ANIMATED_COUNT → integer count  // animated mesh attachments worn; objects: booleanOBJECT_ANIMATED_SLOTS_AVAILABLE → integer count// Scripts, prims and costsOBJECT_RUNNING_SCRIPT_COUNT → integer script_count  // object or avatarOBJECT_TOTAL_SCRIPT_COUNT → integer script_count  // running and stoppedOBJECT_SCRIPT_MEMORY → integer bytesOBJECT_SCRIPT_TIME → float seconds  // average CPU timeOBJECT_CHARACTER_TIME → float seconds  // pathfinding CPU timeOBJECT_PRIM_COUNT → integer countOBJECT_PRIM_EQUIVALENCE → integer prim_countOBJECT_TOTAL_INVENTORY_COUNT → integer countOBJECT_SERVER_COST → float costOBJECT_STREAMING_COST → float costOBJECT_PHYSICS_COST → float cost// CombatOBJECT_HEALTH → float healthOBJECT_DAMAGE → float damage  // dealt on collisionOBJECT_DAMAGE_TYPE → integer damage_type  // DAMAGE_TYPE_*

Constants

Identity and ownership

ConstantTypeValueDescription
OBJECT_NAMEinteger1Flag used with llGetObjectDetails to get the prim's name, or the legacy name if the target is an avatar.
OBJECT_DESCinteger2Flag used with llGetObjectDetails to retrieve the prim's description. Returns an empty string if the ID is an avatar.
OBJECT_OWNERinteger6Flag used with llGetObjectDetails to get the owner's key. If the target is an avatar, their own key is returned. If group-owned, it returns NULL_KEY.
OBJECT_GROUPinteger7Flag used with llGetObjectDetails to get the prim's group key. Returns NULL_KEY if the target is an avatar (which means a workaround is required to get an avatar's active group).
OBJECT_CREATORinteger8Flag used with llGetObjectDetails to get the key of the prim's creator. Returns NULL_KEY if the ID is an avatar.
OBJECT_LAST_OWNER_IDinteger27Flag used with llGetObjectDetails to get the key of the previous owner. For group-owned objects, returns the avatar who deeded it. Returns NULL_KEY for avatars, untransferred objects, or objects taken to inventory and re-rezzed.
OBJECT_REZZER_KEYinteger32Flag used with llGetObjectDetails to retrieve the key of the object or avatar that rezzed the target object.
OBJECT_ROOTinteger18Flag used with llGetObjectDetails to get the ID of the root prim. For an avatar, returns the root prim of the linkset they are sitting on (or the avatar's own ID if not sitting).
OBJECT_LINK_NUMBERinteger46Flag used with llGetObjectDetails to get the index of the prim within its linkset, or 0 if unlinked.
OBJECT_CREATION_TIMEinteger36Flag used with llGetObjectDetails to get the object's creation time (established via build-menu rezzing or mesh uploads, not via inventory/script rezzes, copying, or modifying). Returns an empty string for avatars.
OBJECT_REZ_TIMEinteger45Flag used with llGetObjectDetails to retrieve the timestamp of when the object was rezzed.
OBJECT_PERMSinteger53Flag used with llGetObjectDetails to retrieve the permissions of the object as five integers.
OBJECT_PERMS_COMBINEDinteger54Flag used with llGetObjectDetails to retrieve the permissions of the object combined with all of its inventory items as five integers.

Position and movement

ConstantTypeValueDescription
OBJECT_POSinteger3Flag used with llGetObjectDetails to get the prim's position in region coordinates. For an avatar outside the region, the returned position is relative to the script's region.
OBJECT_ROTinteger4Flag used with llGetObjectDetails to get the prim's rotation.
OBJECT_SCALEinteger47Flag used with llGetObjectDetails to get the size (scale) of the object.
OBJECT_VELOCITYinteger5Flag used with llGetObjectDetails to get the velocity vector of the target object.
OBJECT_OMEGAinteger29Flag used with llGetObjectDetails to get the rotational (angular) velocity of an object in radians per second.
OBJECT_MASSinteger43Flag used with llGetObjectDetails to retrieve the total mass (in kilograms) of the object's linkset.
OBJECT_ATTACHED_POINTinteger19Flag used with llGetObjectDetails. Returns the integer attachment point matching an ATTACH_* constant, or 0 if the target is not an attachment (e.g., an avatar or unattached object).

Object properties

ConstantTypeValueDescription
OBJECT_PHYSICSinteger21Flag used with llGetObjectDetails to get a boolean indicating if physics is enabled on the object. Returns 0 if the target is an avatar or attachment.
OBJECT_PHANTOMinteger22Flag used with llGetObjectDetails to get a boolean indicating if phantom is enabled on the object. Returns 0 if the target is an avatar or attachment.
OBJECT_TEMP_ON_REZinteger23Flag used with llGetObjectDetails to get a boolean indicating if temporary-on-rez is enabled for the object.
OBJECT_TEMP_ATTACHEDinteger34Flag used with llGetObjectDetails to get a boolean indicating whether the object is temporarily attached.
OBJECT_VOLUME_DETECTinteger56Flag used with llGetObjectDetails to get a boolean, indicating if the object is VolumeDetect.
OBJECT_LOCKEDinteger55Flag used with llGetObjectDetails to get a boolean, indicating if the object is locked.
OBJECT_CLICK_ACTIONinteger28Flag used with llGetObjectDetails to get the click action of a prim. Returns an integer corresponding to a CLICK_ACTION_* constant (default is 0).
OBJECT_MATERIALinteger42Flag used with llGetObjectDetails to retrieve the physics material of the object, returning an integer matching a PRIM_MATERIAL_* constant.
OBJECT_PATHFINDING_TYPEinteger20Flag used with llGetObjectDetails to get the pathfinding setting of an object in the region, returning an integer matching an OPT_* constant.
OBJECT_TEXTinteger44Flag used with llGetObjectDetails to get the floating (hover) text displayed above the object.
OBJECT_TEXT_COLORinteger48Flag used with llGetObjectDetails to get the color vector of the floating (hover) text displayed above the object.
OBJECT_TEXT_ALPHAinteger49Flag used with llGetObjectDetails to get the alpha value of the floating (hover) text displayed above the object.
OBJECT_SIT_COUNTinteger38Flag used with llGetObjectDetails to get the total number of agents sitting on any links in the object. Returns 0 if the target is an avatar.
OBJECT_SELECT_COUNTinteger37Flag used with llGetObjectDetails to get the total number of agents/avatars actively selecting any link in the object. Returns 0 if the target is an avatar.

Avatars

ConstantTypeValueDescription
OBJECT_GROUP_TAGinteger33Flag used with llGetObjectDetails to get an avatar's active group tag/title. Returns an empty string if the target is not an avatar.
OBJECT_ACCOUNT_LEVELinteger41Flag used with llGetObjectDetails to retrieve an avatar's account level. Returns 0 for Basic, 1 for Premium, 5 for Plus, 10 for Premium Plus, or -1 if the target is not an avatar.
OBJECT_RENDER_WEIGHTinteger24Flag used with llGetObjectDetails to get the render weight (Avatar Rendering Cost) of an avatar based on viewer reports. Returns 0 for objects, -1 if unknown, and is capped at 500,000.
OBJECT_HOVER_HEIGHTinteger25Flag used with llGetObjectDetails to get the dynamic hover height of an avatar (default is 0.0). Returns 0.0 if not an avatar or if no data is available; does not reflect the shape's 'Hover' slider.
OBJECT_BODY_SHAPE_TYPEinteger26Flag used with llGetObjectDetails to retrieve a float representing the gender/sex setting of an avatar's shape (0.0 is standard female, 1.0 is standard male, and values greater than or equal to 0.5 are considered male). Returns -1.0 if not an avatar or if no data is available.
OBJECT_ATTACHED_SLOTS_AVAILABLEinteger35Flag used with llGetObjectDetails to get an avatar's available attachment slot count. Returns 0 if the ID is not an avatar or if no slots are available.
OBJECT_ANIMATED_COUNTinteger39Flag used with llGetObjectDetails. For an object, returns a boolean indicating if the root is set as 'Animated Mesh'. For an agent, returns the total number of 'Animated Mesh' attachments worn.
OBJECT_ANIMATED_SLOTS_AVAILABLEinteger40Flag used with llGetObjectDetails to get the avatar's available 'Animated Mesh' attachment slot count (returns 0 if the ID is not an avatar).

Scripts, prims and costs

ConstantTypeValueDescription
OBJECT_RUNNING_SCRIPT_COUNTinteger9Flag used with llGetObjectDetails to get the total number of running scripts attached to the target object or agent.
OBJECT_TOTAL_SCRIPT_COUNTinteger10Flag used with llGetObjectDetails to get the total number of scripts (both running and stopped) attached to the target object or agent.
OBJECT_SCRIPT_MEMORYinteger11Flag used with llGetObjectDetails to get the allocated script memory (or its upper limit) in bytes for the object or agent. This value is recomputed every 10-20 seconds.
OBJECT_SCRIPT_TIMEinteger12Flag used with llGetObjectDetails to get the average script CPU time (in seconds) used per frame. Reports a 30-minute average, or the average since entering the region if present for less than 30 minutes.
OBJECT_CHARACTER_TIMEinteger17Flag used with llGetObjectDetails to get the average CPU time (in seconds) spent on navigation if the target is a pathfinding character. Returns 0 for non-characters.
OBJECT_PRIM_COUNTinteger30Flag used with llGetObjectDetails to get the prim count of the object. Note that the script and target object must be owned by the same owner.
OBJECT_PRIM_EQUIVALENCEinteger13Flag used with llGetObjectDetails to get the prim equivalence of the object.
OBJECT_TOTAL_INVENTORY_COUNTinteger31Flag used with llGetObjectDetails to get the total number of inventory items inside the object. Requires the script and target object to share the same owner.
OBJECT_SERVER_COSTinteger14Flag used with llGetObjectDetails to get the server cost of the object.
OBJECT_STREAMING_COSTinteger15Flag used with llGetObjectDetails to get the streaming (download) cost of the object.
OBJECT_PHYSICS_COSTinteger16Flag used with llGetObjectDetails to get the physics cost of the object.

Combat

ConstantTypeValueDescription
OBJECT_HEALTHinteger50Flag used with llGetObjectDetails to retrieve the current health value of an avatar or prim.
OBJECT_DAMAGEinteger51Flag used with llGetObjectDetails to retrieve the amount of damage a prim inflicts upon collision.
OBJECT_DAMAGE_TYPEinteger52Flag used with llGetObjectDetails to retrieve the type of damage a prim inflicts on collision. Returns an integer matching a DAMAGE_TYPE_* constant, a custom type, or a value repurposed by a combat system.

Used by