Difference between revisions of "LlGetObjectDetails"

From Second Life Wiki
Jump to navigation Jump to search
m (knew i had forgotten to do something ^^;)
Line 39: Line 39:
! alt="Value" {{!}}
! alt="Value" {{!}}
! class="unsortable"{{!}} Description
! class="unsortable"{{!}} Description
! class="unsortable"{{!}} Alternatives
{{!}}-
{{!}}-
{{!}}{{LSL Const|OBJECT_NAME|integer|1|c=Gets an object's name.}}
{{!}}{{LSL Const|OBJECT_NAME|integer|1|c=Gets the object's name.}}
{{!}}{{#var:value}}
{{!}}{{#var:value}}
{{!}}{{#var:comment}}
{{!}}{{#var:comment}}
{{!}}
*[[llKey2Name]]
{{!}}-
{{!}}-
{{!}}{{LSL Const|OBJECT_DESC|integer|2|c=Gets an 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}} If '''id''' is an avatar, an empty string is returned.
{{!}}
{{!}}-
{{!}}-
{{!}}{{LSL Const|OBJECT_POS|integer|3|c=Gets an object's position.}}
{{!}}{{LSL Const|OBJECT_POS|integer|3|c=Gets the object's position.}}
{{!}}{{#var:value}}
{{!}}{{#var:value}}
{{!}}{{#var:comment}}
{{!}}{{#var:comment}}
{{!}}
*[[llDetectedPos]]
{{!}}-
{{!}}-
{{!}}{{LSL Const|OBJECT_ROT|integer|4|c=Gets an object's rotation.}}
{{!}}{{LSL Const|OBJECT_ROT|integer|4|c=Gets the object's rotation.}}
{{!}}{{#var:value}}
{{!}}{{#var:value}}
{{!}}{{#var:comment}}
{{!}}{{#var:comment}}
{{!}}
*[[llDetectedRot]]
{{!}}-
{{!}}-
{{!}}{{LSL Const|OBJECT_VELOCITY|integer|5|c=Gets an object's velocity.}}
{{!}}{{LSL Const|OBJECT_VELOCITY|integer|5|c=Gets the object's velocity.}}
{{!}}{{#var:value}}
{{!}}{{#var:value}}
{{!}}{{#var:comment}}
{{!}}{{#var:comment}}
{{!}}
*[[llDetectedVel]]
{{!}}-
{{!}}-
{{!}}{{LSL Const|OBJECT_OWNER|integer|6|c=Gets an object's owner's 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. 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]]
*[[llGetOwnerKey]]
{{!}}-
{{!}}-
{{!}}{{LSL Const|OBJECT_GROUP|integer|7|c=Gets an prims's group's 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}} 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}}
{{!}}-
{{!}}-
{{!}}{{LSL Const|OBJECT_CREATOR|integer|8|c=Gets an object's creator's 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}} 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}}
{{!}}}
{{!}}}
|helpers
|helpers
|also_functions
|also_functions={{LSL DefineRow||[[llKey2Name]]}}
|also_tests
|also_tests
|also_events
|also_events
|also_articles
|also_articles={{LSL DefineRow||{{LSLGC|Detected}}}}
{{LSL DefineRow||[[Prim Attribute Overloading]]}}
|notes
|notes
|history=Introduced in version 1.18.3.2
|history=Introduced in SL 1.18.3(2)
|cat1=Object
|cat1=Object
|cat2
|cat2=Prim
|cat3
|cat3=Avatar
|cat4
|cat4
}}
}}

Revision as of 08:49, 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 );