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

From Second Life Wiki
Jump to navigation Jump to search
m
m
Line 8: Line 8:
! class="unsortable"{{!}} Alternatives
! class="unsortable"{{!}} Alternatives
{{!}}-
{{!}}-
{{!}}{{LSL Const|OBJECT_NAME|integer|1|c=Gets the object's name.}}
{{!}}{{LSL Const|OBJECT_NAME|integer|1|c=Gets the prim's name.}}
{{!}}{{#var:value}}
{{!}}{{#var:value}}
{{!}}{{#var:comment}}
{{!}}{{#var:comment}}
Line 17: Line 17:
*[[llDetectedName]]
*[[llDetectedName]]
{{!}}-
{{!}}-
{{!}}{{LSL Const|OBJECT_DESC|integer|2|c=Gets the object's description.}}
{{!}}{{LSL Const|OBJECT_DESC|integer|2|c=Gets the prim's description.}}
{{!}}{{#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.
Line 24: Line 24:
{{!}}
{{!}}
{{!}}-
{{!}}-
{{!}}{{LSL Const|OBJECT_POS|integer|3|c=Gets the object's position in region coordinates.}}
{{!}}{{LSL Const|OBJECT_POS|integer|3|c=Gets the prim's position in region coordinates.}}
{{!}}{{#var:value}}
{{!}}{{#var:value}}
{{!}}Gets the object's position in [[Viewer_coordinate_frames#Region|region coordinates]].
{{!}}Gets the prim's position in [[Viewer_coordinate_frames#Region|region coordinates]].
{{!}}(36 Characters)
{{!}}(36 Characters)
{{!}}[[vector]]
{{!}}[[vector]]
Line 32: Line 32:
*[[llDetectedPos]]
*[[llDetectedPos]]
{{!}}-
{{!}}-
{{!}}{{LSL Const|OBJECT_ROT|integer|4|c=Gets the object's rotation.}}
{{!}}{{LSL Const|OBJECT_ROT|integer|4|c=Gets the prim's rotation.}}
{{!}}{{#var:value}}
{{!}}{{#var:value}}
{{!}}{{#var:comment}}
{{!}}{{#var:comment}}
Line 64: Line 64:
{{!}}{{LSLGC|Group}}
{{!}}{{LSLGC|Group}}
{{!}}-
{{!}}-
{{!}}{{LSL Const|OBJECT_CREATOR|integer|8|c=Gets the object's creator key.}}
{{!}}{{LSL Const|OBJECT_CREATOR|integer|8|c=Gets the prim's creator key.}}
{{!}}{{#var:value}}
{{!}}{{#var:value}}
{{!}}Gets the prims's {{LSLGC|Creator|creator}} key.<br/>If '''id''' is an avatar, a {{LSL Constant/NULL_KEY}} is returned.
{{!}}Gets the prims's {{LSLGC|Creator|creator}} key.<br/>If '''id''' is an avatar, a {{LSL Constant/NULL_KEY}} is returned.

Revision as of 16:51, 6 July 2008

Flags Description Max Length Return Alternatives
OBJECT_NAME 1 Gets the prim's name. 63 Characters string
OBJECT_DESC 2 Gets the prim's description.
If id is an avatar, an empty string is returned.
127 Characters string
OBJECT_POS 3 Gets the prim's position in region coordinates. (36 Characters) vector
OBJECT_ROT 4 Gets the prim's rotation. (48 Characters) rotation
OBJECT_VELOCITY 5 Gets the object's velocity. (36 Characters) vector
OBJECT_OWNER 6 Gets an object's owner key.
If id is group-owned or an avatar, a NULL_KEY is returned.
(36 Characters) key
OBJECT_GROUP 7 Gets the prims's group key.
If id is an avatar, a NULL_KEY is returned.
(36 Characters) key Group
OBJECT_CREATOR 8 Gets the prims's creator key.
If id is an avatar, a NULL_KEY is returned.
(36 Characters) key Creator
Max Lengths in parentheses represent how many characters required when it is typecast to a string.