Skip to content
lsl.devlsl.devLSL Dev

OBJECT_PHANTOM

constant
Constant
integer OBJECT_PHANTOM = 22;

Constant groups

ObjectDetailsParam

Other ObjectDetailsParam values (55)

This is a flag used with llGetObjectDetails to get the object’s phantom attribute.

If the object being queried is an avatar or attachment, 0 is returned.

|

FlagsDescriptionLength when typecast to a stringReturnAlternativesLocal
OBJECT_NAME1Gets the prim’s name.
If id is an avatar, the Legacy Name is returned.
max. 63 charactersstring namellGetObjectName
OBJECT_DESC2Gets the prim’s description.
If id is an avatar, an empty string is returned.
max. 127 charactersstring descllGetObjectDesc
OBJECT_POS3Gets the prim’s position in region coordinates.
If id is an avatar outside the region (see above), this position is relative to the region the script is running in.
max. 37 charactersvector posllGetPos
OBJECT_ROT4Gets the prim’s rotation.max. 48 charactersrotation rotllGetRot
OBJECT_VELOCITY5Gets the object’s velocity.36 charactersvector velllGetVel
OBJECT_OWNER6Gets an object’s owner key.
If id is an avatar, that avatar’s key is returned (which is the same as id).
If id is group-owned, a NULL_KEY is returned.
36 characterskeyllGetOwner
OBJECT_GROUP7Gets the prim’s group key.
If id is an avatar, a NULL_KEY is returned, which means a workaround is required to get an avatar’s active group.1
36 characterskey groupGroup
OBJECT_CREATOR8Gets the prim’s creator key.
If id is an avatar, a NULL_KEY is returned.
36 characterskey creatorCreatorllGetCreator
OBJECT_RUNNING_SCRIPT_COUNT9Gets the number of running scripts attached to the object or agent.max. 11 charactersinteger countllGetScriptState
OBJECT_TOTAL_SCRIPT_COUNT10Gets the number of scripts, both running and stopped, attached to the object or agent.max. 11 charactersinteger countllGetInventoryNumber
OBJECT_SCRIPT_MEMORY11Gets the amount of script memory used by the object or agent, in bytes, or its upper limit. See page for more info.max. 11 charactersinteger bytes
OBJECT_SCRIPT_TIME12Gets the total amount of average script CPU time used by the object or agent, in seconds. See page for more info.max. 15 charactersfloat secondsTop Scripts
OBJECT_PRIM_EQUIVALENCE13Gets the prim equivalence of the object.max. 11 charactersinteger countCalculating land impact
OBJECT_SERVER_COST14Gets the server cost of the object.max. 15 charactersfloat costServer cost
OBJECT_STREAMING_COST15Gets the streaming (download) cost of the object.max. 15 charactersfloat costStreaming (download) cost
OBJECT_PHYSICS_COST16Gets the physics cost of the object.max. 15 charactersfloat costPhysics cost
OBJECT_CHARACTER_TIME17Gets the average CPU time (in seconds) used by the object for navigation, if the object is a pathfinding character. Returns 0 for non-characters.max. 15 charactersfloat secondsPathfinding characters
OBJECT_ROOT18Gets the id of the root prim of the object requested.
If id is an avatar, returns the id of the root prim of the linkset the avatar is sitting on and linked to (or the avatar’s own id if the avatar is not sitting on an object within the region).
36 characterskey rootllGetLinkKey
OBJECT_ATTACHED_POINT19Gets the attachment point to which the object is attached. It returns an integer matching one of the ATTACH_* constants.max. 11 charactersintegerllGetAttached
OBJECT_PATHFINDING_TYPE20Gets the pathfinding setting of the object in the region. It returns an integer matching one of the OPT_* constants.max. 11 charactersinteger typePathfinding types
OBJECT_PHYSICS21Gets the integer boolean detailing if physics is enabled or disabled on the object.
If id is an avatar or attachment, 0 is returned.
1 characterintegerllGetStatus PRIM_PHYSICS
OBJECT_PHANTOM22Gets the integer boolean detailing if phantom is enabled or disabled on the object.
If id is an avatar or attachment, 0 is returned.
1 characterintegerllGetStatus PRIM_PHANTOM
OBJECT_TEMP_ON_REZ23Gets the integer boolean detailing if temporary is enabled or disabled on the object.1 characterintegerPRIM_TEMP_ON_REZ
OBJECT_RENDER_WEIGHT24Gets the avatar’s render weight.
If id is an object, 0 is returned. If id is an avatar whose render weight is unknown to the simulator, -1 is returned. The maximum render weight reported by the server is 5000002.
max. 6 charactersinteger weightAvatar_Rendering_Cost
OBJECT_HOVER_HEIGHT25Gets the hover height of the avatar.
If id is not an avatar, 0.0 is returned. Normal values are in the range [-2.0, 2.0] with a default of 0.0. This value does not reflect the avatar shape’s “Hover” slider, only the dynamic viewer setting.
max. 9 charactersfloat height
OBJECT_BODY_SHAPE_TYPE26

Gets a float which describes the sex setting of the avatar’s currently worn shape.

If id is not an avatar, -1.0 is returned.

Normal operational values are in the range [0.0, 1.0].

  • 0.0 is standard female setting,
  • 1.0 is standard male setting.

Intermediate values with visible differences are possible with manually crafted shapes.

max. 9 charactersfloat shape
OBJECT_LAST_OWNER_ID27

Gets the UUID of the object’s previous owner, if known.

  • For group-owned objects, this is the avatar that deeded the object.
  • Returns NULL_KEY for avatars, or objects that were never transferred.
  • A rezzed object taken back to inventory, then re-rezzed, will return its current owner key.
36 characterskey last_owner
OBJECT_CLICK_ACTION28Gets the click action of the prim. It returns an integer matching one of the CLICK_ACTION_* constants.max. 3 charactersinteger action
OBJECT_OMEGA29Gets the object’s rotational velocity (radians per second).36 charactersvector omegallGetOmega
OBJECT_PRIM_COUNT30Gets the object’s prim countmax. 3 charactersinteger countllGetObjectPrimCountllGetNumberOfPrims
OBJECT_TOTAL_INVENTORY_COUNT31Gets the object’s total number of inventory items.max. 10 charactersinteger countllGetInventoryNumber(INVENTORY_ALL)
OBJECT_REZZER_KEY32Gets the key of the object that rezzed this object be it an object or an avatar.36 characterskey rezzer
OBJECT_GROUP_TAG33Gets the avatar’s group tag text.
If id is not an avatar, an empty string is returned.
max. 20 bytesstring text
OBJECT_TEMP_ATTACHED34Gets the integer boolean detailing if the object is temporarily attached.1 characterinteger
OBJECT_ATTACHED_SLOTS_AVAILABLE35Gets the avatar’s available attachment slot count.
If id is not an avatar, 0 is returned.
max. 2 charactersinteger count
OBJECT_CREATION_TIME36Gets the object’s creation time. This time is established with raw material rezzing through the build menu and with mesh uploads.
This time is NOT established with inventory rezzes, scripted rezzes, object modifying, copying or transferring.
If id is an avatar, an empty string is returned.
max. 27 bytesstring timestamp
OBJECT_SELECT_COUNT37Gets the total number of agents selecting any links in the object.
If id is an avatar, 0 is returned.
max. 3 charactersinteger count
OBJECT_SIT_COUNT38Gets the total number of agents sitting on any links in the object.
If id is an avatar, 0 is returned.
max. 3 charactersinteger count
OBJECT_ANIMATED_COUNT39Gets the integer boolean detailing if the object’s root is set to “Animated Mesh” or gets the total number of “Animated Mesh” attachments worn by an agent.max. 1 characterinteger count
OBJECT_ANIMATED_SLOTS_AVAILABLE40Gets the avatar’s available “Animated Mesh” attachment slot count.
If id is not an avatar, 0 is returned.
max. 2 charactersinteger count
OBJECT_ACCOUNT_LEVEL41

Gets the account level of an avatar.

If id is not an avatar, -1 is returned.

  • 0 is Basic account level.
  • 1 is Premium account level.
  • 5 is Plus account level.
  • 10 is Premium Plus account level.
max. 1 characterinteger level
OBJECT_MATERIAL42Retrieves the physics material set on this object. It returns an integer matching one of the PRIM_MATERIAL_* constants.integer materialllGetPrimitiveParams
PRIM_MATERIAL
OBJECT_MASS43Gets the mass (in Kilograms) of this object’s linkset.float massllGetMassMKS
OBJECT_TEXT44Gets the floating text displayed above this object.string textllGetPrimitiveParams
PRIM_TEXT
OBJECT_REZ_TIME45Retrieves the time that this object was rezzed.string time
OBJECT_LINK_NUMBER46Get this object’s index in the linkset.integer link_numberllGetLinkNumber
OBJECT_SCALE47Get the size of this object.vector scalellGetScale
OBJECT_TEXT_COLOR48Gets the color of the floating text displayed above this object.vector colorllGetPrimitiveParams
PRIM_TEXT
OBJECT_TEXT_ALPHA49Gets the alpha value of the floating text displayed above this object.float alphallGetPrimitiveParams
PRIM_TEXT
OBJECT_HEALTH50Retrieves the health of an avatar or prim.float healthllGetPrimitiveParams
PRIM_HEALTH
llGetHealth
OBJECT_DAMAGE51Retrieves the amount of damage a prim inflicts on collision.float damagellGetPrimitiveParams
PRIM_DAMAGE
OBJECT_DAMAGE_TYPE52Retrieves the type of damage a prim inflicts on collision. It returns an integer that can match one of the DAMAGE_TYPE_* constants, be a custom damage type or be repurposed by a combat system.integer damage_typellGetPrimitiveParams
PRIM_DAMAGE
OBJECT_PERMS, integer base, integer owner, integer group, integer everyone, integer next_owner53Retrieves the permissions for this object as 5 integers.integer base, integer owner, integer group, integer everyone, integer next_ownerllGetObjectPermMask
OBJECT_PERMS_COMBINED, integer base, integer owner, integer group, integer everyone, integer next_owner54Retrieves the permissions for this object combined with all of its inventory items as 5 integers.
OBJECT_LOCKED55Retrieves the locked status of this objectinteger isLockedllGetObjectPermMask
OBJECT_VOLUME_DETECT56Retrieves the VolumeDetect status of this objectinteger isVolumeDetectllVolumeDetect
Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.

  1. There are at least 3 JIRA’s about OBJECT_GROUP and avatars, LL has refused all of them. Most recently on December 5th 2013 in BUG-4654. ↩

  2. On July 2016, Rolig Loon commented on the talk page for llGetObjectDetails() that allegedly SL viewers are showing render weights of 1,300,000. ↩