LlGetParcelDetails

From Second Life Wiki

Jump to: navigation, search

Contents

Summary

Function: list llGetParcelDetails( vector pos, list params );

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.

Both x and y components of pos are clamped to the range [0.0, 256.0], the z component is ignored.

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
PARCEL_DETAILS_ID 5 The parcel's key. (36 Characters) key
PARCEL_DETAILS_SEE_AVATARS 6 The parcel's avatar visibility setting[2] (1 character) integer - boolean
Max Lengths in parentheses represent how many characters required when it is typecast to a string.

Caveats

  • This cannot be used to get the parcel details of parcels in neighboring regions.
  • There are no PARCEL_DETAILS_LANDING_POINT or PARCEL_DETAILS_TELEPORT_ROUTING flags. SVC-4413
All Issues ~ Search JIRA for related Bugs

Examples

A very simple example to return the parcel name and description for the current parcel.

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

Deep Notes

All Issues

~ Search JIRA for related Issues
   Please add a way to get the parcel "landing point" and "teleport routing" to llGetParcelDetails

Footnotes

  1. ^ The ranges in this article are written in Interval Notation.
  2. ^ The parcel avatar visibility setting is used to hide avatars, their chat, and objects they sit on when they are in other parcels.
This article wasn't helpful for you? Maybe the related article at the LSL Wiki is able to bring enlightenment.
Personal tools
In other languages