llGetRegionName
function
Function syntax
string llGetRegionName();- Returns
string- Energy
- 10
Returns a string containing the name of the current region.
Returns a string that is the current region name
string result = llGetRegionName();Examples
Section titled “Examples”Example 1
// 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);12 collapsed lines
string posy = (string)llRound(pos.y); string posz = (string)llRound(pos.z); return (globe + "/" + llEscapeURL(region) +"/" + posx + "/" + posy + "/" + posz);}
default{ state_entry() { llOwnerSay( wwGetSLUrl() ); }}See also
Section titled “See also”Functions
Section titled “Functions”Original wiki source
Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.