Difference between revisions of "Template:LSL Constants/Object Details"
Jump to navigation
Jump to search
(OBJECT_OWNER returns NULL_KEY if id is an avatar as well) |
m (Fix typo + grammar) |
||
Line 50: | Line 50: | ||
{{!}}{{LSL Const|OBJECT_OWNER|integer|6|c=Gets the object's owner key.}} | {{!}}{{LSL Const|OBJECT_OWNER|integer|6|c=Gets the object's owner key.}} | ||
{{!}}{{#var:value}} | {{!}}{{#var:value}} | ||
{{!}}Gets an object's owner's key.<br/>If '''id''' is an avatar | {{!}}Gets an object's owner's key.<br/>If '''id''' is group-owned or an avatar, a {{LSL Const|NULL_KEY|key|"00000000-0000-0000-0000-000000000000"|c=Evaluates to false in conditionals just like invalid keys.}} is returned. | ||
{{!}}(36 Characters) | {{!}}(36 Characters) | ||
{{!}}[[key]] | {{!}}[[key]] |
Revision as of 19:18, 16 December 2007
Flags | Description | Max Length | Return | Alternatives | |
---|---|---|---|---|---|
OBJECT_NAME | 1 | Gets the object's name. | 63 Characters | string | |
OBJECT_DESC | 2 | Gets the object's description. If id is an avatar, an empty string is returned. |
127 Characters | string | |
OBJECT_POS | 3 | Gets the object's position in region coordinates. | (36 Characters) | vector | |
OBJECT_ROT | 4 | Gets the object's rotation. | (48 Characters) | rotation | |
OBJECT_VELOCITY | 5 | Gets the object's velocity. | (36 Characters) | vector | |
OBJECT_OWNER | 6 | Gets an object's owner's 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 object'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.