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.}}

Revision as of 07: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 );
0.0 Forced Delay
10.0 Energy

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

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)

Signature

function list llGetObjectDetails( key id, list params );