llGetRegionName

From Second Life Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Summary

Function: string llGetRegionName( );

Returns a string that is the current region name

Examples

// Say what would be said by "Copy SLURL to clipboard" in the Map of the standard client

string wwGetSLUrl()
{
    string globe = "http://maps.secondlife.com/secondlife";
    string region = llGetRegionName();
    vector pos = llGetPos();
    string posx = (string)llRound(pos.x);
    string posy = (string)llRound(pos.y);
    string posz = (string)llRound(pos.z);
    return (globe + "/" + llEscapeURL(region) +"/" + posx + "/" + posy + "/" + posz);
}

default
{
    state_entry()
    {
        llOwnerSay( wwGetSLUrl() );
    }
}

Deep Notes

Search JIRA for related Issues

Signature

function string llGetRegionName();

Haiku

Code whispers its truth,
GetRegionName reveals land,
Strings hold regions close.