OsGetRegionMapTexture

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{| width="100%" style="border: thin solid black"
+
{{osslfunc
| colspan="2" align="center" style=background:orange | '''{{SUBPAGENAME}}'''
+
|threat_level=High
|- valign="top"
+
|permissions=${osslParcelO},ESTATE_MANAGER,ESTATE_OWNER
|'''Threat Level''' || High
+
|delay=1
 
+
|function_syntax=key osGetRegionMapTexture(string regionNameOrID)
|- valign="top"
+
|ossl_example=<source lang="lsl">
|'''Function Syntax''' || <source lang="lsl">
+
osGetRegionMapTexture(string regionName)
+
</source>
+
|- valign="top"
+
|'''Example(s)||<source lang="lsl">
+
 
//Example Usage:
 
//Example Usage:
 
default {
 
default {
Line 18: Line 13:
 
}
 
}
 
</source>
 
</source>
 
+
|description=This function retrieves the key of the texture used to represent a region on the world map. regionNameOrID can be the region UUID or its name. If empty string, will return the current region map texture key, but in that case you should use osGetMapTexture().
|}
+
}}
 
+
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 Functions]]
+

Revision as of 13:39, 27 August 2019

key osGetRegionMapTexture(string regionNameOrID)
This function retrieves the key of the texture used to represent a region on the world map. regionNameOrID can be the region UUID or its name. If empty string, will return the current region map texture key, but in that case you should use osGetMapTexture().
Threat Level High
Permissions ${osslParcelO},ESTATE_MANAGER,ESTATE_OWNER
Extra Delay 1 seconds
Example(s)
//Example Usage:
default {
    state_entry() {
        key map = osGetRegionMapTexture(llGetRegionName());
        llSetTexture(map, 0);
    }
}
Personal tools
General
About This Wiki