Difference between revisions of "LlGetObjectDetails"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 46: Line 46:
{{!}}
{{!}}
*[[llKey2Name]]
*[[llKey2Name]]
*[[llDetectedName]]
{{!}}-
{{!}}-
{{!}}{{LSL Const|OBJECT_DESC|integer|2|c=Gets the object's description.}}
{{!}}{{LSL Const|OBJECT_DESC|integer|2|c=Gets the object's description.}}
{{!}}{{#var:value}}
{{!}}{{#var:value}}
{{!}}{{#var:comment}} If '''id''' is an avatar, an empty string is returned.
{{!}}{{#var:comment}}<br/>If '''id''' is an avatar, an empty string is returned.
{{!}}
{{!}}
{{!}}-
{{!}}-
Line 72: Line 73:
{{!}}{{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. If '''id''' is group owned, a {{LSL Const|NULL_KEY|key|"00000000-0000-0000-0000-000000000000"|c=Evaluates to false in conditionals just like invalid keys.}} is returned.
{{!}}Gets an object's owner's key.<br/>If '''id''' is group owned, a {{LSL Const|NULL_KEY|key|"00000000-0000-0000-0000-000000000000"|c=Evaluates to false in conditionals just like invalid keys.}} is returned.
{{!}}
{{!}}
*[[llDetectedOwner]]
*[[llDetectedOwner]]
Line 79: Line 80:
{{!}}{{LSL Const|OBJECT_GROUP|integer|7|c=Gets the prims's group key.}}
{{!}}{{LSL Const|OBJECT_GROUP|integer|7|c=Gets the prims's group key.}}
{{!}}{{#var:value}}
{{!}}{{#var:value}}
{{!}}{{#var:comment}} If '''id''' is 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.
{{!}}{{#var:comment}}<br/>If '''id''' is 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.
{{!}}{{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 object's creator key.}}
{{!}}{{#var:value}}
{{!}}{{#var:value}}
{{!}}{{#var:comment}} If '''id''' is 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.
{{!}}{{#var:comment}}<br/>If '''id''' is 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.
{{!}}{{LSLGC|Creator}}
{{!}}{{LSLGC|Creator}}
{{!}}}
{{!}}}

Revision as of 08:53, 30 August 2007

Deletion Requested
The deletion of this article was requested for the following reason:

Template is no longer used and it's creator thinks it does not function properly.

If there is a need to discuss the deletion of this article, please add your comment(s) here.

Summary

Function: list llGetObjectDetails( key id, list params );

Returns a list of the details specified in params for the object with key id.

• key id
• list params OBJECT_* flags

OBJECT_UNKNOWN_DETAIL is returned when passed an invalid integer parameter.
If id is not in the sim an empty list is returned.

Constant Description Alternatives
OBJECT_NAME 1 Gets the object's name.
OBJECT_DESC 2 Gets the object's description.
If id is an avatar, an empty string is returned.
OBJECT_POS 3 Gets the object's position.
OBJECT_ROT 4 Gets the object's rotation.
OBJECT_VELOCITY 5 Gets the object's velocity.
OBJECT_OWNER 6 Gets an object's owner's key.
If id is group owned, a NULL_KEY is returned.
OBJECT_GROUP 7 Gets the prims's group key.
If id is an avatar, a NULL_KEY is returned.
Group
OBJECT_CREATOR 8 Gets the object's creator key.
If id is an avatar, a NULL_KEY is returned.
Creator

Caveats

All Issues ~ Search JIRA for related Bugs

Examples

default
{
    collision_start(integer i)
    {
        list a = llGetObjectDetails(llDetectedKey(0), ([OBJECT_NAME, 
                    OBJECT_DESC, OBJECT_POS, OBJECT_ROT, OBJECT_VELOCITY,
                    OBJECT_OWNER, OBJECT_GROUP, OBJECT_CREATOR]));
        llSetText("UUID: " + (string)llDetectedKey(0) +
                "\nName: \"" + llList2String(a,0)+ "\"" +
                "\nDecription: \"" + llList2String(a,1) + "\"" +
                "\nPosition: " + llList2String(a,2) +
                "\nRotation: " + llList2String(a,3) +
                "\nVelocity: " + llList2String(a,4) +
                "\nOwner: " + llList2String(a,5) +
                "\nGroup: " + llList2String(a,6) +
                "\nCreator: " + llList2String(a,7),
                <1.0, 1.0, 1.0>, 1.0);
    }
}

See Also

Functions

•  llKey2Name

Articles

•  Detected
•  Prim Attribute Overloading

Deep Notes

History

Introduced in SL 1.18.3(2)

Search JIRA for related Issues

Signature

function list llGetObjectDetails( key id, list params );