OsGetRegionMapTexture

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
'''osGetRegionMapTexture'''(string regionName)
+
{|  width="100%" style="border: thin solid black"
 +
| colspan="2" align="center" style=background:orange | '''{{SUBPAGENAME}}'''
 +
|- valign="top"
 +
|'''Threat Level''' || High
  
This function retrieves the UUID of the texture used to represent the named region on the world map, and returns it.  Using this function, you can place the map texture directly onto a prim.  osGetRegionMapTexture has a threat level of High.
+
|- valign="top"
 
+
|'''Function Syntax''' || <source lang="lsl">
<source lang="lsl">
+
osGetRegionMapTexture(string regionName)
 +
</source>
 +
|- valign="top"
 +
|'''Example(s)||<source lang="lsl">
 
//Example Usage:
 
//Example Usage:
 
default {
 
default {
Line 13: Line 19:
 
</source>
 
</source>
  
 +
|}
  
 +
This function retrieves the UUID of the texture used to represent the named region on the world map, and returns it.  Using this function, you can place the map texture directly onto a prim.
  
[[Category:OSSL]]
+
[[Category:OSSL Functions]]

Revision as of 08:43, 11 June 2011

OsGetRegionMapTexture
Threat Level High
Function Syntax
osGetRegionMapTexture(string regionName)
Example(s)
//Example Usage:
default {
    state_entry() {
        key map = osGetRegionMapTexture(llGetRegionName());
        llSetTexture(map, 0);
    }
}

This function retrieves the UUID of the texture used to represent the named region on the world map, and returns it. Using this function, you can place the map texture directly onto a prim.

Personal tools
General
About This Wiki