OsGetRegionMapTexture

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
Line 3: Line 3:
 
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.
 
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.
  
 
+
<source lang="lsl">
<code><pre>//Example Usage:
+
//Example Usage:
 
default {
 
default {
 
     state_entry() {
 
     state_entry() {
Line 11: Line 11:
 
     }
 
     }
 
}
 
}
</pre></code>
+
</source>
  
  
  
 
[[Category:OSSL]]
 
[[Category:OSSL]]

Revision as of 16:31, 5 June 2011

osGetRegionMapTexture(string regionName)

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.

//Example Usage:
default {
    state_entry() {
        key map = osGetRegionMapTexture(llGetRegionName());
        llSetTexture(map, 0);
    }
}
Personal tools
General
About This Wiki