OsGetRegionMapTexture

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(New page: '''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, y...)
 
m (XEngine to OSSL)
(11 intermediate revisions by 4 users not shown)
Line 1: Line 1:
'''osGetRegionMapTexture'''(string regionName)
+
{{osslfunc
 
+
|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.
+
|permissions=${OSSL|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER
 
+
|delay=1
 
+
|function_syntax=key osGetRegionMapTexture(string regionNameOrID)
<code><pre>//Example Usage:
+
|ossl_example=<source lang="lsl">
 +
//Example Usage:
 
default {
 
default {
 
     state_entry() {
 
     state_entry() {
Line 11: Line 12:
 
     }
 
     }
 
}
 
}
</pre></code>
+
</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().
--[[User:ZauberExonar|ZauberExonar]] 08:19, 5 February 2010 (UTC)
+
}}

Revision as of 07:40, 7 November 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 ${OSSL|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