LlGetParcelDetails

From Second Life Wiki

Jump to: navigation, search

Template:Needs Translation/LSL/de Template:Needs Translation/LSL/es Template:Needs Translation/LSL/el Template:Needs Translation/LSL/he Template:Needs Translation/LSL/it Template:Needs Translation/LSL/ko Template:Needs Translation/LSL/nl Template:Needs Translation/LSL/hu Template:Needs Translation/LSL/no Template:Needs Translation/LSL/da Template:Needs Translation/LSL/sv Template:Needs Translation/LSL/tr Template:Needs Translation/LSL/pl Template:Needs Translation/LSL/pt Template:Needs Translation/LSL/ru Template:Needs Translation/LSL/uk Template:Needs Translation/LSL/zh-Hans Template:Needs Translation/LSL/zh-Hant

Contents

Summary

Function: list llGetParcelDetails( vector pos, list params );
327 Function ID
0.0 Delay
10.0 Energy

Returns a list that is the parcel details specified in params (in the same order) for the parcel at pos.

• vector pos only x and y are important and to be given in region coordinates
• list params a list of PARCEL_DETAILS_* flags.
Flag Meaning Max Length Return
PARCEL_DETAILS_NAME 0 The name of the parcel. 63 Characters string
PARCEL_DETAILS_DESC 1 The description of the parcel. 127 Characters string
PARCEL_DETAILS_OWNER 2 The parcel owner's key. (36 Characters) key
PARCEL_DETAILS_GROUP 3 The parcel group's key. (36 Characters) key
PARCEL_DETAILS_AREA 4 The parcel's area, in sqm. (5 Characters) integer
Max Lengths in parentheses represent how many characters required when it is typecast to a string.

Caveats

  • There is no PARCEL_DETAILS_UUID flag, so there is no way to get the parcel identifier. SVC-1638
  • There is also no PARCEL_DETAILS_LANDING_POINT or PARCEL_DETAILS_TELEPORT_ROUTING. SVC-4413

Search JIRA for related Bugs

Examples

A very simple example to return the parcel details for the current parcel. Note the use of llGetPos() as opposed to llGetRegionCorner(). Using the latter will return simulator details.

list landinforeqd = [PARCEL_DETAILS_NAME, PARCEL_DETAILS_DESC];
vector regionbase;
default
{
    state_entry()
    {
        regionbase = llGetPos();  // llGetRegionCorner();
    }
 
    touch_start(integer total_number)
    {
        list details = llGetParcelDetails(regionbase,landinforeqd);
 
        llSay(0, "Local Parcel Name:" + llList2String(details ,0));
        llSay(0, "Local Parcel Desc:" + llList2String(details ,1));
    }
}

See Also

Deep Notes

Issues

~ Search JIRA for related Issues
New Feature - A new feature of the product, which has yet to be developed. Open - The issue is open and ready for the assignee to start work on it.    PARCEL_DETAILS_UUID flag needed
New Feature - A new feature of the product, which has yet to be developed. Open - The issue is open and ready for the assignee to start work on it.    Please add a way to get the parcel "landing point" and "teleport routing" to llGetParcelDetails
This article wasn't helpful for you? Maybe the related article at the LSL Wiki is able to bring enlightenment.
In other languages