OsGetParcelID: Difference between revisions

From OpenSimulator
Jump to navigationJump to search
imported>Ubit
Created page with "{{osslfunc |threat_level= none |permissions= none |delay=0 |additional_info=This function was added in 0.9.3.0 |function_syntax= osGetParcelID() |ossl_example=<source lang = "..."
 
imported>Ubit
No edit summary
Line 8: Line 8:
default
default
{
{
        list ids = osGetParcelIDs();
    touch_start(integer hhh)
         integer count = llGetListLength(ids);
    {
         integer i = 0;
         key id = osGetParcelID();
        while (i < count)
         list tmp = osGetParcelDetails(id),[PARCEL_DETAILS_OWNER,PARCEL_DETAILS_NAME,PARCEL_DETAILS_AREA]);
        {
        llSay(0,"** "+llDumpList2String(tmp," "));
            list tmp = osGetParcelDetails(llList2Key(ids,i++),[PARCEL_DETAILS_OWNER,PARCEL_DETAILS_NAME,PARCEL_DETAILS_AREA]);
    }
            llSay(0,"** "+llDumpList2String(tmp," "));
        }
}
}
</source>
</source>

Revision as of 19:27, 16 April 2023

osGetParcelID()
This function returns the parcel global id (parcelID) of the parcel where host prim is.
Threat Level none is unknown threat level
Permissions none
Extra Delay 0 seconds
Example(s)
default
{
    touch_start(integer hhh)
    {
        key id = osGetParcelID();
        list tmp = osGetParcelDetails(id),[PARCEL_DETAILS_OWNER,PARCEL_DETAILS_NAME,PARCEL_DETAILS_AREA]);
        llSay(0,"** "+llDumpList2String(tmp," "));
    }
}
Notes
This function was added in 0.9.3.0