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

From Second Life Wiki
Jump to: navigation, search
m
m
Line 155: Line 155:
 
{{!}}
 
{{!}}
 
{{!}}-
 
{{!}}-
{{!}}{{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 pathfinding setting of the object in the region. It returns an integer matching one of the {{LSLGC|Pathfinding Types|OPT_*}} constants.
+
{{!}}(11 Characters)
+
{{!}}[[integer]]
+
{{!}}[[Pathfinding_Quick_Start_Guide|Pathfinding types]]
+
{{!}}
+
{{!}}-
+
{{!}}{{LSL Const|OBJECT_ROOT|integer|?|c=Gets the id of the root prim of the object requested.}}
+
 
{{!}}{{#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 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).
Line 171: Line 163:
 
{{!}}[[llGetLinkKey]]
 
{{!}}[[llGetLinkKey]]
 
{{!}}-
 
{{!}}-
{{!}}{{LSL Const|OBJECT_ATTACHED_POINT|integer|?|c=Gets the attachment point to which the object is attached.}}
+
{{!}}{{LSL Const|OBJECT_ATTACHED_POINT|integer|19|c=Gets the attachment point to which the object is attached.}}
 
{{!}}{{#var:value}}
 
{{!}}{{#var:value}}
 
{{!}}Gets the attachment point to which the object is attached.
 
{{!}}Gets the attachment point to which the object is attached.
Line 178: Line 170:
 
{{!}}
 
{{!}}
 
{{!}}[[llGetAttached]]
 
{{!}}[[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}}
 +
{{!}}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)
 +
{{!}}[[integer]]
 +
{{!}}[[Pathfinding_Quick_Start_Guide|Pathfinding types]]
 +
{{!}}
 
{{!}}- class="sortbottom"
 
{{!}}- class="sortbottom"
 
{{!}} colspan="7" {{!}} Max Lengths in parentheses represent how many characters required when it is [[typecast]] to a string.
 
{{!}} colspan="7" {{!}} Max Lengths in parentheses represent how many characters required when it is [[typecast]] to a string.

Revision as of 00:18, 29 October 2012

Flags Description Max Length Return Alternatives Local
OBJECT_NAME 1 Gets the prim's name. 63 Characters string llGetObjectName
OBJECT_DESC 2 Gets the prim's description.
If id is an avatar, an empty string is returned.
127 Characters string 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.
(37 Characters) vector llGetPos
OBJECT_ROT 4 Gets the prim's rotation. (48 Characters) rotation llGetRot
OBJECT_VELOCITY 5 Gets the object's velocity. (36 Characters) vector 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 llGetOwner
OBJECT_GROUP 7 Gets the prim's group key.
If id is an avatar, a NULL_KEY is returned.
(36 Characters) key Group
OBJECT_CREATOR 8 Gets the prim's creator key.
If id is an avatar, a NULL_KEY is returned.
(36 Characters) key Creator llGetCreator
OBJECT_RUNNING_SCRIPT_COUNT 9 Gets the number of running scripts attached to the object or agent. (11 Characters) integer llGetScriptState
OBJECT_TOTAL_SCRIPT_COUNT 10 Gets the number of scripts, both running and stopped, attached to the object or agent. (11 Characters) integer llGetInventoryNumber
OBJECT_SCRIPT_MEMORY 11 Gets the total amount of script memory allocated to the object or agent, in bytes. (11 Characters) integer
OBJECT_SCRIPT_TIME 12 Gets the total amount of average script CPU time used by the object or agent, in seconds. (15 Characters) float Top Scripts
OBJECT_PRIM_EQUIVALENCE 13 Gets the prim equivalence of the object. (11 Characters) integer Calculating land impact
OBJECT_SERVER_COST 14 Gets the server cost of the object. (15 Characters) float Server cost
OBJECT_STREAMING_COST 15 Gets the streaming (download) cost of the object. (15 Characters) float Streaming (download) cost
OBJECT_PHYSICS_COST 16 Gets the physics cost of the object. (15 Characters) float 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. (15 Characters) float Pathfinding characters
OBJECT_ROOT 18 Gets the id of the root prim of the object requested.
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).
(36 Characters) key llGetLinkKey
OBJECT_ATTACHED_POINT 19 Gets the attachment point to which the object is attached. (11 Characters) integer 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. (11 Characters) integer Pathfinding types
Max Lengths in parentheses represent how many characters required when it is typecast to a string.