Difference between revisions of "Template:LSL Constants/Object Details"

From Second Life Wiki
Jump to navigation Jump to search
m
(Added info for constants OBJECT_ANIMATED_COUNT & OBJECT_ANIMATED_SLOTS_AVAILABLE.)
(39 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{LSL Signature/Add|
{{{!}} class="sortable" {{Prettytable|style=margin-top:0;}}
{{LSL Const/Signature|OBJECT_SERVER_COST|integer|14|c=Gets the server cost of the object.}}
{{LSL Const/Signature|OBJECT_STREAMING_COST|integer|15|c=Gets the streaming (download) cost of the object.}}
{{LSL Const/Signature|OBJECT_PHYSICS_COST|integer|16|c=Gets the physics cost of the object.}}
}}{{{!}} class="sortable" {{Prettytable|style=margin-top:0;}}
{{!}}-{{Hl2}}
{{!}}-{{Hl2}}
! {{!}} Flags
! {{!}} Flags
! title="Value" {{!}}
! title="Value" {{!}}
! class="unsortable"{{!}} Description
! class="unsortable"{{!}} Description
! class="unsortable"{{!}} Max Length
! class="unsortable"{{!}} Length when [[typecast]] to a [[string]]
! Return
! Return
! class="unsortable"{{!}} Alternatives
! class="unsortable"{{!}} Alternatives
Line 15: Line 11:
{{!}}{{LSL Const|OBJECT_NAME|integer|1|c=Gets the prim's name.}}
{{!}}{{LSL Const|OBJECT_NAME|integer|1|c=Gets the prim's name.}}
{{!}}{{#var:value}}
{{!}}{{#var:value}}
{{!}}{{#var:comment}}
{{!}}{{#var:comment}}<br/>If '''id''' is an avatar, the {{LSLGC|Legacy Name}} is returned.
{{!}}63 Characters
{{!}}max. 63 characters
{{!}}[[string]]
{{!}}[[string]] {{LSL PL|type=string|name}}
{{!}}
{{!}}
*[[llKey2Name]]
*[[llKey2Name]]
Line 26: Line 22:
{{!}}{{#var:value}}
{{!}}{{#var:value}}
{{!}}{{#var:comment}}<br/>If '''id''' is an avatar, an empty string is returned.
{{!}}{{#var:comment}}<br/>If '''id''' is an avatar, an empty string is returned.
{{!}}127 Characters
{{!}}max. 127 characters
{{!}}[[string]]
{{!}}[[string]] {{LSL PL|type=string|desc}}
{{!}}
{{!}}
{{!}} [[llGetObjectDesc]]
{{!}} [[llGetObjectDesc]]
Line 34: Line 30:
{{!}}{{#var:value}}
{{!}}{{#var:value}}
{{!}}Gets the prim's position in [[Viewer_coordinate_frames#Region|region coordinates]].<br/>If '''id''' is an avatar outside the region (see above), this position is relative to the region the script is [[llGetRegionName|running in]].
{{!}}Gets the prim's position in [[Viewer_coordinate_frames#Region|region coordinates]].<br/>If '''id''' is an avatar outside the region (see above), this position is relative to the region the script is [[llGetRegionName|running in]].
{{!}}(37 Characters)
{{!}}max. 37 characters
{{!}}[[vector]]
{{!}}[[vector]] {{LSL PL|type=vector|pos}}
{{!}}
{{!}}
*[[llDetectedPos]]
*[[llDetectedPos]]
Line 43: Line 39:
{{!}}{{#var:value}}
{{!}}{{#var:value}}
{{!}}{{#var:comment}}
{{!}}{{#var:comment}}
{{!}}(48 Characters)
{{!}}max. 48 characters
{{!}}[[rotation]]
{{!}}[[rotation]] {{LSL PL|type=rotation|rot}}
{{!}}
{{!}}
*[[llDetectedRot]]
*[[llDetectedRot]]
Line 52: Line 48:
{{!}}{{#var:value}}
{{!}}{{#var:value}}
{{!}}{{#var:comment}}
{{!}}{{#var:comment}}
{{!}}(36 Characters)
{{!}}36 characters
{{!}}[[vector]]
{{!}}[[vector]] {{LSL PL|type=vector|vel}}
{{!}}
{{!}}
*[[llDetectedVel]]
*[[llDetectedVel]]
Line 61: Line 57:
{{!}}{{#var:value}}
{{!}}{{#var:value}}
{{!}}Gets an object's {{LSLGC|Owner|owner}} key.<br/>If '''id''' is an avatar, that avatar's key is returned (which is the same as '''id''').<br/>If '''id''' is group-owned, a {{LSL Constant/NULL_KEY}} is returned.
{{!}}Gets an object's {{LSLGC|Owner|owner}} key.<br/>If '''id''' is an avatar, that avatar's key is returned (which is the same as '''id''').<br/>If '''id''' is group-owned, a {{LSL Constant/NULL_KEY}} is returned.
{{!}}(36 Characters)
{{!}}36 characters
{{!}}[[key]]
{{!}}[[key]] {{LSL PL|type=key|subtype=owner}}
{{!}}
{{!}}
*[[llDetectedOwner]]
*[[llDetectedOwner]]
Line 70: Line 66:
{{!}}{{LSL Const|OBJECT_GROUP|integer|7|c=Gets the prim's group key.}}
{{!}}{{LSL Const|OBJECT_GROUP|integer|7|c=Gets the prim's group key.}}
{{!}}{{#var:value}}
{{!}}{{#var:value}}
{{!}}Gets the prim's {{LSLGC|Group|group}} key.<br/>If '''id''' is an avatar, a {{LSL Constant/NULL_KEY}} is returned.
{{!}}Gets the prim's {{LSLGC|Group|group}} key.<br/>If '''id''' is an avatar, a {{LSL Constant/NULL_KEY}} is returned.{{Footnote|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 {{JIRA|BUG-4654}}.|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.}}
{{!}}(36 Characters)
{{!}}36 characters
{{!}}[[key]]
{{!}}[[key]] {{LSL PL|type=key|group}}
{{!}}{{LSLGC|Group}}
{{!}}{{LSLGC|Group}}
{{!}}
{{!}}-
{{!}}-
{{!}}{{LSL Const|OBJECT_CREATOR|integer|8|c=Gets the prim's creator key.}}
{{!}}{{LSL Const|OBJECT_CREATOR|integer|8|c=Gets the prim's creator key.}}
{{!}}{{#var:value}}
{{!}}{{#var:value}}
{{!}}Gets the prim's {{LSLGC|Creator|creator}} key.<br/>If '''id''' is an avatar, a {{LSL Constant/NULL_KEY}} is returned.
{{!}}Gets the prim's {{LSLGC|Creator|creator}} key.<br/>If '''id''' is an avatar, a {{LSL Constant/NULL_KEY}} is returned.
{{!}}(36 Characters)
{{!}}36 characters
{{!}}[[key]]
{{!}}[[key]] {{LSL PL|creator}}
{{!}}{{LSLGC|Creator}}
{{!}}{{LSLGC|Creator}}
{{!}} [[llGetCreator]]
{{!}} [[llGetCreator]]
Line 86: Line 83:
{{!}}{{#var:value}}
{{!}}{{#var:value}}
{{!}}Gets the number of [[llGetScriptState|running]] scripts attached to the object or agent.
{{!}}Gets the number of [[llGetScriptState|running]] scripts attached to the object or agent.
{{!}}(11 Characters)
{{!}}max. 11 characters
{{!}}[[integer]]
{{!}}[[integer]] {{LSL PL|script_count|disp=count}}
{{!}}
{{!}}
{{!}}[[llGetScriptState]]
{{!}}[[llGetScriptState]]
Line 94: Line 91:
{{!}}{{#var:value}}
{{!}}{{#var:value}}
{{!}}Gets the number of scripts, both running and stopped, attached to the object or agent.
{{!}}Gets the number of scripts, both running and stopped, attached to the object or agent.
{{!}}(11 Characters)
{{!}}max. 11 characters
{{!}}[[integer]]
{{!}}[[integer]] {{LSL PL|script_count|disp=count}}
{{!}}
{{!}}
{{!}}[[llGetInventoryNumber]]
{{!}}[[llGetInventoryNumber]]
Line 102: Line 99:
{{!}}{{#var:value}}
{{!}}{{#var:value}}
{{!}}Gets the total amount of [[LSL Script Memory|script memory]] allocated to the object or agent, in bytes.
{{!}}Gets the total amount of [[LSL Script Memory|script memory]] allocated to the object or agent, in bytes.
{{!}}(11 Characters)
{{!}}max. 11 characters
{{!}}[[integer]]
{{!}}[[integer]] {{LSL PL|bytes}}
{{!}}
{{!}}
{{!}}
{{!}}
Line 110: Line 107:
{{!}}{{#var:value}}
{{!}}{{#var:value}}
{{!}}Gets the total amount of average script CPU time used by the object or agent, in seconds.
{{!}}Gets the total amount of average script CPU time used by the object or agent, in seconds.
{{!}}(15 Characters)
{{!}}max. 15 characters
{{!}}[[float]]
{{!}}[[float]] {{LSL PL|seconds}}
{{!}}[[Viewerhelp:Top_Colliders_and_Top_Scripts|Top Scripts]]
{{!}}[[Viewerhelp:Top_Colliders_and_Top_Scripts|Top Scripts]]
{{!}}
{{!}}
Line 118: Line 115:
{{!}}{{#var:value}}
{{!}}{{#var:value}}
{{!}}Gets the prim equivalence of the object.
{{!}}Gets the prim equivalence of the object.
{{!}}(11 Characters)
{{!}}max. 11 characters
{{!}}[[integer]]
{{!}}[[integer]] {{LSL PL|prim_count|disp=count}}
{{!}}[http://community.secondlife.com/t5/English-Knowledge-Base/Calculating-land-impact/ta-p/974163 Calculating land impact]
{{!}}[http://community.secondlife.com/t5/English-Knowledge-Base/Calculating-land-impact/ta-p/974163 Calculating land impact]
{{!}}
{{!}}
Line 126: Line 123:
{{!}}{{#var:value}}
{{!}}{{#var:value}}
{{!}}Gets the [[Mesh/Mesh_Server_Weight|server cost]] of the object.
{{!}}Gets the [[Mesh/Mesh_Server_Weight|server cost]] of the object.
{{!}}(15 Characters)
{{!}}max. 15 characters
{{!}}[[float]]
{{!}}[[float]] {{LSL PL|type=float|cost}}
{{!}}[[Mesh/Mesh_Server_Weight|Server cost]]
{{!}}[[Mesh/Mesh_Server_Weight|Server cost]]
{{!}}
{{!}}
Line 134: Line 131:
{{!}}{{#var:value}}
{{!}}{{#var:value}}
{{!}}Gets the [[Mesh/Mesh_Streaming_Cost|streaming (download) cost]] of the object.
{{!}}Gets the [[Mesh/Mesh_Streaming_Cost|streaming (download) cost]] of the object.
{{!}}(15 Characters)
{{!}}max. 15 characters
{{!}}[[float]]
{{!}}[[float]] {{LSL PL|cost}}
{{!}}[[Mesh/Mesh_Streaming_Cost|Streaming (download) cost]]
{{!}}[[Mesh/Mesh_Streaming_Cost|Streaming (download) cost]]
{{!}}
{{!}}
Line 141: Line 138:
{{!}}{{LSL Const|OBJECT_PHYSICS_COST|integer|16|c=Gets the physics cost of the object.}}
{{!}}{{LSL Const|OBJECT_PHYSICS_COST|integer|16|c=Gets the physics cost of the object.}}
{{!}}{{#var:value}}
{{!}}{{#var:value}}
{{!}}Gets the [[Mesh/Mesh_physics|physics cost]] of the object.
{{!}}Gets the [[Mesh/Mesh_physics#Physics_Resource_Cost|physics cost]] of the object.
{{!}}(15 Characters)
{{!}}max. 15 characters
{{!}}[[float]]
{{!}}[[float]] {{LSL PL|cost}}
{{!}}[[Mesh/Mesh_physics|Physics cost]]
{{!}}[[Mesh/Mesh_physics|Physics cost]]
{{!}}
{{!}}
Line 150: Line 147:
{{!}}{{#var:value}}
{{!}}{{#var:value}}
{{!}}Gets the average CPU time (in seconds) used by the object for navigation, if the object is a pathfinding character. Returns 0 for non-characters.
{{!}}Gets the average CPU time (in seconds) used by the object for navigation, if the object is a pathfinding character. Returns 0 for non-characters.
{{!}}(15 Characters)
{{!}}max. 15 characters
{{!}}[[float]]
{{!}}[[float]] {{LSL PL|seconds}}
{{!}}[[Viewerhelp:Pathfinding_characters|Pathfinding characters]]
{{!}}[[Viewerhelp:Pathfinding_characters|Pathfinding characters]]
{{!}}
{{!}}
{{!}}-
{{!}}-
{{!}}{{LSL Const|OBJECT_PATHFINDING_TYPE|integer|?|c=Gets the pathfinding setting of the object in the region. It returns an integer matching one of the OPT_* constants.}}
{{!}}{{LSL Const|OBJECT_ROOT|integer|18|c=Gets the id of the root prim of the object requested.}}
{{!}}{{#var:value}}
{{!}}Gets the id of the [[Link#Root_Prim|root prim]] of the object requested.<br/>If '''id''' is an avatar, returns the id of the [[Link#Root_Prim|root prim]] of the [[Link#Link_Set|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 characters
{{!}}[[key]] {{LSL PL|root|type=key}}
{{!}}
{{!}}[[llGetLinkKey]]
{{!}}-
{{!}}{{LSL Const|OBJECT_ATTACHED_POINT|integer|19|c=Gets the attachment point to which the object is attached.}}
{{!}}{{#var:value}}
{{!}}Gets the attachment point to which the object is attached.
{{!}}max. 11 characters
{{!}}[[integer]] {{LSL PL|type=integer|subtype=attach_point}}
{{!}}
{{!}}[[llGetAttached]]
{{!}}-
{{!}}{{LSL Const|OBJECT_PATHFINDING_TYPE|integer|20|c=Gets the pathfinding setting of the object in the region. It returns an integer matching one of the OPT_* constants.}}
{{!}}{{#var:value}}
{{!}}{{#var:value}}
{{!}}Gets the pathfinding setting of the object in the region. It returns an integer matching one of the {{LSLGC|Pathfinding Types|OPT_*}} constants.
{{!}}Gets the pathfinding setting of the object in the region. It returns an integer matching one of the {{LSLGC|Pathfinding Types|OPT_*}} constants.
{{!}}(11 Characters)
{{!}}max. 11 characters
{{!}}[[integer]]
{{!}}[[integer]] {{LSL PL|pathfinding_type|type=integer|disp=type}}
{{!}}[[Pathfinding_Quick_Start_Guide|Pathfinding types]]
{{!}}[[Pathfinding_Quick_Start_Guide|Pathfinding types]]
{{!}}
{{!}}
{{!}}-
{{!}}-
{{!}}{{LSL Const|OBJECT_ROOT|integer|?|c=Gets the id of the root prim of the object requested.}}
{{!}}{{LSL Const|OBJECT_PHYSICS|integer|21|c=Gets the boolean detailing if physics is enabled or disabled on the object.}}
{{!}}{{#var:value}}
{{!}}Gets the integer boolean detailing if physics is enabled or disabled on the object.<br/>If '''id''' is an {{LSLGC|Avatar|avatar}} or {{LSLGC|Attachment|attachment}}, {{HoverText|0|FALSE aka, Zero}} is returned.
{{!}}1 character
{{!}}[[integer]] {{LSL PL|type=integer|subtype=boolean}}
{{!}}
{{!}}[[llGetStatus]] [[PRIM_PHYSICS]]
{{!}}-
{{!}}{{LSL Const|OBJECT_PHANTOM|integer|22|c=Gets the boolean detailing if phantom is enabled or disabled on the object.}}
{{!}}{{#var:value}}
{{!}}Gets the integer boolean detailing if phantom is enabled or disabled on the object.<br/>If '''id''' is an {{LSLGC|Avatar|avatar}} or {{LSLGC|Attachment|attachment}}, {{HoverText|0|FALSE aka, Zero}} is returned.
{{!}}1 character
{{!}}[[integer]] {{LSL PL|type=integer|subtype=boolean}}
{{!}}
{{!}}[[llGetStatus]] [[PRIM_PHANTOM]]
{{!}}-
{{!}}{{LSL Const|OBJECT_TEMP_ON_REZ|integer|23|c=Gets the boolean detailing if temporary is enabled or disabled on the object.}}
{{!}}{{#var:value}}
{{!}}Gets the integer boolean detailing if temporary is enabled or disabled on the object.
{{!}}1 character
{{!}}[[integer]] {{LSL PL|type=integer|subtype=boolean}}
{{!}}
{{!}}[[PRIM_TEMP_ON_REZ]]
{{!}}-
{{!}}{{LSL Const|OBJECT_RENDER_WEIGHT|integer|24|c=Gets the avatar's render weight.}}
{{!}}{{#var:value}}
{{!}}{{#var:comment}}<br/>If '''id''' is an object, {{HoverText|0|FALSE aka, Zero}} 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 500000.
{{!}}max. 6 characters
{{!}}[[integer]] {{LSL PL|type=integer|weight}}
{{!}} [[Avatar_Rendering_Cost]]
{{!}}
{{!}}-
{{!}}{{LSL Const|OBJECT_HOVER_HEIGHT|integer|25|c=Gets the hover height of the avatar.}}
{{!}}{{#var:value}}
{{!}}Gets the [[Hover Height|hover height]] of the avatar.<br>If '''id''' is not an avatar, 0.0 is returned. Normal values are in the range {{Interval|gte=-2.0|lte=2.0|center=hover_height}} with a default of 0.0. This value does ''not'' reflect the avatar shape's "Hover" slider, only the dynamic viewer setting.
{{!}}max. 9 characters
{{!}}[[float]] {{LSL PL|type=float|height}}
{{!}}
{{!}}
{{!}}-
{{!}}{{LSL Const|OBJECT_BODY_SHAPE_TYPE|integer|26|c=Gets a float which describes the sex of the body shape of the avatar.}}
{{!}}{{#var:value}}
{{!}}Gets a float which describes the sex setting of the avatar's currently worn shape.<br>If '''id''' is not an avatar, -1.0 is returned.<br>Normal operational values are in the range {{Interval|gte=0.0|lte=1.0|center=shape}}.
* 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 characters
{{!}}[[float]] {{LSL PL|type=float|body_shape|disp=shape}}
{{!}}
{{!}}
{{!}}-
{{!}}{{LSL Const|OBJECT_LAST_OWNER_ID|integer|27|c=Gets the UUID of the object's previous owner, if known.}}
{{!}}{{#var:value}}
{{!}}Gets the UUID of the object's previous owner, if known. For group-owned objects, this is the avatar that deeded the object.
{{!}}36 characters
{{!}}[[key]] {{LSL PL|type=key|subtype=owner|last_owner}}
{{!}}
{{!}}
{{!}}-
{{!}}{{LSL Const|OBJECT_CLICK_ACTION|integer|28|c=Gets the Click Action of the prim.}}
{{!}}{{#var:value}}
{{!}}Gets the {{LSLGC|Click Action}} of the prim.
{{!}}max. 11 characters
{{!}}[[integer]] {{LSL PL|type=integer|subtype=click_action|action}}
{{!}}
{{!}}
{{!}}-
{{!}}{{LSL Const|OBJECT_OMEGA|integer|29|c=Gets the object's omega.}}
{{!}}{{#var:value}}
{{!}}Gets the object's rotational velocity (radians per second).
{{!}}36 characters
{{!}}[[vector]] {{LSL PL|type=vector|omega}}
{{!}}
{{!}} [[llGetOmega]]
{{!}}-
{{!}}{{LSL Const|OBJECT_PRIM_COUNT|integer|30|c=Gets the object's prim count.}}
{{!}}{{#var:value}}
{{!}}Gets the object's prim count
{{!}}max. 3 characters
{{!}}[[integer]] {{LSL PL|type=integer|count}}
{{!}} [[llGetObjectPrimCount]]
{{!}} [[llGetNumberOfPrims]]
{{!}}-
{{!}}{{LSL Const|OBJECT_TOTAL_INVENTORY_COUNT|integer|31|c=Gets the object's total number of inventory items.}}
{{!}}{{#var:value}}
{{!}}Gets the object's total number of [[llGetInventoryNumber|inventory items]].
{{!}}max. 10 characters
{{!}}[[integer]] {{LSL PL|type=integer|count}}
{{!}}
{{!}} [[llGetInventoryNumber]]{{PBR}}([[INVENTORY_ALL]])
{{!}}-
{{!}}{{LSL Const|OBJECT_REZZER_KEY|integer|32|c=Gets the key of the object that rezzed the object.}}
{{!}}{{#var:value}}
{{!}}Gets the key of the object that rezzed this object be it an object or an avatar.
{{!}}36 characters
{{!}}[[key]] {{LSL PL|type=key|rezzer}}
{{!}}
{{!}}
{{!}}-
{{!}}{{LSL Const|OBJECT_GROUP_TAG|integer|33|c=Gets the avatar's group tag text.}}
{{!}}{{#var:value}}
{{!}}{{#var:value}}
{{!}}Gets the id of the root prim of the object requested.<br/>If '''id''' is an avatar, return the id of the root prim of the linkset the avatar is sitting on (or the avatar's own id if the avatar is not sitting on an object within the region).
{{!}}Gets the avatar's group tag text.<br>If '''id''' is not an avatar, an empty string is returned.
{{!}}(36 Characters)
{{!}}max. 20 bytes
{{!}}[[key]]
{{!}}[[string]] {{LSL PL|type=string|text}}
{{!}}
{{!}}
{{!}}-
{{!}}{{LSL Const|OBJECT_TEMP_ATTACHED|integer|34|c=Gets the integer boolean detailing if the object is temporarily attached.}}
{{!}}{{#var:value}}
{{!}}Gets the integer boolean detailing if the object is [[llAttachToAvatarTemp|temporarily attached]].
{{!}}1 character
{{!}}[[integer]] {{LSL PL|type=integer|subtype=boolean}}
{{!}}
{{!}}
{{!}}-
{{!}}{{LSL Const|OBJECT_ATTACHED_SLOTS_AVAILABLE|integer|35|c=Gets the avatar's available attachment slot count.}}
{{!}}{{#var:value}}
{{!}}Gets the avatar's available attachment slot count.<br>If '''id''' is not an avatar, 0 is returned.
{{!}}max. 2 characters
{{!}}[[integer]] {{LSL PL|type=integer|count}}
{{!}}
{{!}}
{{!}}-
{{!}}{{LSL Const|OBJECT_CREATION_TIME|integer|36|c=Gets the object's creation time.}}
{{!}}{{#var:value}}
{{!}}Gets the object's creation time. This time is established with raw material rezzing through the build menu and with mesh uploads.<br>This time is NOT established with inventory rezzes, scripted rezzes, object modifying, copying or transferring.<br>If '''id''' is an avatar, an empty string is returned.
{{!}}max. 27 bytes
{{!}}[[string]] {{LSL PL|type=string|timestamp}}
{{!}}
{{!}}
{{!}}-
{{!}}{{LSL Const|OBJECT_SELECT_COUNT|integer|37|c=Gets the total number of agents selecting any links in the object.}}
{{!}}{{#var:value}}
{{!}}Gets the total number of agents selecting any links in the object.<br>If '''id''' is an avatar, 0 is returned.
{{!}}max. 3 characters
{{!}}[[integer]] {{LSL PL|type=integer|count}}
{{!}}
{{!}}
{{!}}-
{{!}}{{LSL Const|OBJECT_SIT_COUNT|integer|38|c=Gets the total number of agents sitting on any links in the object.}}
{{!}}{{#var:value}}
{{!}}Gets the total number of agents sitting on any links in the object.<br>If '''id''' is an avatar, 0 is returned.
{{!}}max. 3 characters
{{!}}[[integer]] {{LSL PL|type=integer|count}}
{{!}}
{{!}}
{{!}}-
{{!}}{{LSL Const|OBJECT_ANIMATED_COUNT|integer|39|c=Gets the integer boolean detailing if the object'root is set to "Animated Mesh" or gets the total number of "Animated Mesh" attachments worn by an agent.}}
{{!}}{{#var:value}}
{{!}}Gets 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 character
{{!}}[[integer]] {{LSL PL|type=integer|count}}
{{!}}
{{!}}
{{!}}
{{!}}[[llGetLinkKey]]
{{!}}-
{{!}}-
{{!}}{{LSL Const|OBJECT_ATTACHED_POINT|integer|?|c=Gets the attachment point to which the object is attached.}}
{{!}}{{LSL Const|OBJECT_ANIMATED_SLOTS_AVAILABLE|integer|40|c=Gets the avatar's available "Animated Mesh" attachment slot count.}}
{{!}}{{#var:value}}
{{!}}{{#var:value}}
{{!}}Gets the attachment point to which the object is attached.
{{!}}Gets the avatar's available "Animated Mesh" attachment slot count.<br>If '''id''' is not an avatar, 0 is returned.
{{!}}(11 Characters)
{{!}}max. 2 characters
{{!}}[[integer]]
{{!}}[[integer]] {{LSL PL|type=integer|count}}
{{!}}
{{!}}
{{!}}
{{!}}[[llGetAttached]]
{{!}}-
{{!}}- class="sortbottom"
{{!}} colspan="7" {{!}} Max Lengths in parentheses represent how many characters required when it is [[typecast]] to a string.
{{!}} style="display:none;" {{!}}
{{!}} style="display:none;" {{!}}
{{!}} style="display:none;" {{!}}
{{!}} style="display:none;" {{!}}
{{!}} style="display:none;" {{!}}
{{!}} style="display:none;" {{!}}
{{!}}}
{{!}}}

Revision as of 19:19, 29 August 2019

Flags Description Length when typecast to a string Return Alternatives Local
OBJECT_NAME 1 Gets the prim's name.
If id is an avatar, the Legacy Name is returned.
max. 63 characters string name llGetObjectName
OBJECT_DESC 2 Gets the prim's description.
If id is an avatar, an empty string is returned.
max. 127 characters string desc llGetObjectDesc
OBJECT_POS 3 Gets 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 characters vector pos llGetPos
OBJECT_ROT 4 Gets the prim's rotation. max. 48 characters rotation rot llGetRot
OBJECT_VELOCITY 5 Gets the object's velocity. 36 characters vector vel llGetVel
OBJECT_OWNER 6 Gets 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 characters key owner llGetOwner
OBJECT_GROUP 7 Gets the prim's group key.
If id is an avatar, a NULL_KEY is returned.[1]
36 characters key group Group
OBJECT_CREATOR 8 Gets the prim's creator key.
If id is an avatar, a NULL_KEY is returned.
36 characters key creator Creator llGetCreator
OBJECT_RUNNING_SCRIPT_COUNT 9 Gets the number of running scripts attached to the object or agent. max. 11 characters integer count llGetScriptState
OBJECT_TOTAL_SCRIPT_COUNT 10 Gets the number of scripts, both running and stopped, attached to the object or agent. max. 11 characters integer count llGetInventoryNumber
OBJECT_SCRIPT_MEMORY 11 Gets the total amount of script memory allocated to the object or agent, in bytes. max. 11 characters integer bytes
OBJECT_SCRIPT_TIME 12 Gets the total amount of average script CPU time used by the object or agent, in seconds. max. 15 characters float seconds Top Scripts
OBJECT_PRIM_EQUIVALENCE 13 Gets the prim equivalence of the object. max. 11 characters integer count Calculating land impact
OBJECT_SERVER_COST 14 Gets the server cost of the object. max. 15 characters float cost Server cost
OBJECT_STREAMING_COST 15 Gets the streaming (download) cost of the object. max. 15 characters float cost Streaming (download) cost
OBJECT_PHYSICS_COST 16 Gets the physics cost of the object. max. 15 characters float cost Physics cost
OBJECT_CHARACTER_TIME 17 Gets 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 characters float seconds Pathfinding characters
OBJECT_ROOT 18 Gets 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 characters key root llGetLinkKey
OBJECT_ATTACHED_POINT 19 Gets the attachment point to which the object is attached. max. 11 characters integer attach_point llGetAttached
OBJECT_PATHFINDING_TYPE 20 Gets the pathfinding setting of the object in the region. It returns an integer matching one of the OPT_* constants. max. 11 characters integer type Pathfinding types
OBJECT_PHYSICS 21 Gets the integer boolean detailing if physics is enabled or disabled on the object.
If id is an avatar or attachment, 0 is returned.
1 character integer boolean llGetStatus PRIM_PHYSICS
OBJECT_PHANTOM 22 Gets the integer boolean detailing if phantom is enabled or disabled on the object.
If id is an avatar or attachment, 0 is returned.
1 character integer boolean llGetStatus PRIM_PHANTOM
OBJECT_TEMP_ON_REZ 23 Gets the integer boolean detailing if temporary is enabled or disabled on the object. 1 character integer boolean PRIM_TEMP_ON_REZ
OBJECT_RENDER_WEIGHT 24 Gets 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 500000.
max. 6 characters integer weight Avatar_Rendering_Cost
OBJECT_HOVER_HEIGHT 25 Gets 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 characters float height
OBJECT_BODY_SHAPE_TYPE 26 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 characters float shape
OBJECT_LAST_OWNER_ID 27 Gets the UUID of the object's previous owner, if known. For group-owned objects, this is the avatar that deeded the object. 36 characters key last_owner
OBJECT_CLICK_ACTION 28 Gets the Click Action of the prim. max. 11 characters integer action
OBJECT_OMEGA 29 Gets the object's rotational velocity (radians per second). 36 characters vector omega llGetOmega
OBJECT_PRIM_COUNT 30 Gets the object's prim count max. 3 characters integer count llGetObjectPrimCount llGetNumberOfPrims
OBJECT_TOTAL_INVENTORY_COUNT 31 Gets the object's total number of inventory items. max. 10 characters integer count llGetInventoryNumber(INVENTORY_ALL)
OBJECT_REZZER_KEY 32 Gets the key of the object that rezzed this object be it an object or an avatar. 36 characters key rezzer
OBJECT_GROUP_TAG 33 Gets the avatar's group tag text.
If id is not an avatar, an empty string is returned.
max. 20 bytes string text
OBJECT_TEMP_ATTACHED 34 Gets the integer boolean detailing if the object is temporarily attached. 1 character integer boolean
OBJECT_ATTACHED_SLOTS_AVAILABLE 35 Gets the avatar's available attachment slot count.
If id is not an avatar, 0 is returned.
max. 2 characters integer count
OBJECT_CREATION_TIME 36 Gets 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 bytes string timestamp
OBJECT_SELECT_COUNT 37 Gets the total number of agents selecting any links in the object.
If id is an avatar, 0 is returned.
max. 3 characters integer count
OBJECT_SIT_COUNT 38 Gets the total number of agents sitting on any links in the object.
If id is an avatar, 0 is returned.
max. 3 characters integer count
OBJECT_ANIMATED_COUNT 39 Gets 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 character integer count
OBJECT_ANIMATED_SLOTS_AVAILABLE 40 Gets the avatar's available "Animated Mesh" attachment slot count.
If id is not an avatar, 0 is returned.
max. 2 characters integer count