ObjectDetailsParam
Constants in the ObjectDetailsParam enum.
// 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
| Constant | Type | Value | Description |
|---|---|---|---|
OBJECT_NAME | integer | 1 | Flag used with llGetObjectDetails to get the prim's name, or the legacy name if the target is an avatar. |
OBJECT_DESC | integer | 2 | Flag used with llGetObjectDetails to retrieve the prim's description. Returns an empty string if the ID is an avatar. |
OBJECT_OWNER | integer | 6 | Flag 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_GROUP | integer | 7 | Flag 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_CREATOR | integer | 8 | Flag used with llGetObjectDetails to get the key of the prim's creator. Returns NULL_KEY if the ID is an avatar. |
OBJECT_LAST_OWNER_ID | integer | 27 | Flag 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_KEY | integer | 32 | Flag used with llGetObjectDetails to retrieve the key of the object or avatar that rezzed the target object. |
OBJECT_ROOT | integer | 18 | Flag 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_NUMBER | integer | 46 | Flag used with llGetObjectDetails to get the index of the prim within its linkset, or 0 if unlinked. |
OBJECT_CREATION_TIME | integer | 36 | Flag 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_TIME | integer | 45 | Flag used with llGetObjectDetails to retrieve the timestamp of when the object was rezzed. |
OBJECT_PERMS | integer | 53 | Flag used with llGetObjectDetails to retrieve the permissions of the object as five integers. |
OBJECT_PERMS_COMBINED | integer | 54 | Flag used with llGetObjectDetails to retrieve the permissions of the object combined with all of its inventory items as five integers. |
Position and movement
| Constant | Type | Value | Description |
|---|---|---|---|
OBJECT_POS | integer | 3 | Flag 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_ROT | integer | 4 | Flag used with llGetObjectDetails to get the prim's rotation. |
OBJECT_SCALE | integer | 47 | Flag used with llGetObjectDetails to get the size (scale) of the object. |
OBJECT_VELOCITY | integer | 5 | Flag used with llGetObjectDetails to get the velocity vector of the target object. |
OBJECT_OMEGA | integer | 29 | Flag used with llGetObjectDetails to get the rotational (angular) velocity of an object in radians per second. |
OBJECT_MASS | integer | 43 | Flag used with llGetObjectDetails to retrieve the total mass (in kilograms) of the object's linkset. |
OBJECT_ATTACHED_POINT | integer | 19 | Flag 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
| Constant | Type | Value | Description |
|---|---|---|---|
OBJECT_PHYSICS | integer | 21 | Flag 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_PHANTOM | integer | 22 | Flag 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_REZ | integer | 23 | Flag used with llGetObjectDetails to get a boolean indicating if temporary-on-rez is enabled for the object. |
OBJECT_TEMP_ATTACHED | integer | 34 | Flag used with llGetObjectDetails to get a boolean indicating whether the object is temporarily attached. |
OBJECT_VOLUME_DETECT | integer | 56 | Flag used with llGetObjectDetails to get a boolean, indicating if the object is VolumeDetect. |
OBJECT_LOCKED | integer | 55 | Flag used with llGetObjectDetails to get a boolean, indicating if the object is locked. |
OBJECT_CLICK_ACTION | integer | 28 | Flag used with llGetObjectDetails to get the click action of a prim. Returns an integer corresponding to a CLICK_ACTION_* constant (default is 0). |
OBJECT_MATERIAL | integer | 42 | Flag used with llGetObjectDetails to retrieve the physics material of the object, returning an integer matching a PRIM_MATERIAL_* constant. |
OBJECT_PATHFINDING_TYPE | integer | 20 | Flag used with llGetObjectDetails to get the pathfinding setting of an object in the region, returning an integer matching an OPT_* constant. |
OBJECT_TEXT | integer | 44 | Flag used with llGetObjectDetails to get the floating (hover) text displayed above the object. |
OBJECT_TEXT_COLOR | integer | 48 | Flag used with llGetObjectDetails to get the color vector of the floating (hover) text displayed above the object. |
OBJECT_TEXT_ALPHA | integer | 49 | Flag used with llGetObjectDetails to get the alpha value of the floating (hover) text displayed above the object. |
OBJECT_SIT_COUNT | integer | 38 | Flag 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_COUNT | integer | 37 | Flag 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
| Constant | Type | Value | Description |
|---|---|---|---|
OBJECT_GROUP_TAG | integer | 33 | Flag 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_LEVEL | integer | 41 | Flag 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_WEIGHT | integer | 24 | Flag 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_HEIGHT | integer | 25 | Flag 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_TYPE | integer | 26 | Flag 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_AVAILABLE | integer | 35 | Flag 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_COUNT | integer | 39 | Flag 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_AVAILABLE | integer | 40 | Flag 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
| Constant | Type | Value | Description |
|---|---|---|---|
OBJECT_RUNNING_SCRIPT_COUNT | integer | 9 | Flag used with llGetObjectDetails to get the total number of running scripts attached to the target object or agent. |
OBJECT_TOTAL_SCRIPT_COUNT | integer | 10 | Flag used with llGetObjectDetails to get the total number of scripts (both running and stopped) attached to the target object or agent. |
OBJECT_SCRIPT_MEMORY | integer | 11 | Flag 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_TIME | integer | 12 | Flag 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_TIME | integer | 17 | Flag 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_COUNT | integer | 30 | Flag 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_EQUIVALENCE | integer | 13 | Flag used with llGetObjectDetails to get the prim equivalence of the object. |
OBJECT_TOTAL_INVENTORY_COUNT | integer | 31 | Flag 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_COST | integer | 14 | Flag used with llGetObjectDetails to get the server cost of the object. |
OBJECT_STREAMING_COST | integer | 15 | Flag used with llGetObjectDetails to get the streaming (download) cost of the object. |
OBJECT_PHYSICS_COST | integer | 16 | Flag used with llGetObjectDetails to get the physics cost of the object. |
Combat
| Constant | Type | Value | Description |
|---|---|---|---|
OBJECT_HEALTH | integer | 50 | Flag used with llGetObjectDetails to retrieve the current health value of an avatar or prim. |
OBJECT_DAMAGE | integer | 51 | Flag used with llGetObjectDetails to retrieve the amount of damage a prim inflicts upon collision. |
OBJECT_DAMAGE_TYPE | integer | 52 | Flag 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
llGetObjectDetailsfunctionReturns a list containing the requested parameters of the specified avatar or object id, retrieved in the order requested by params.