OsGetRegionSize: Difference between revisions

From OpenSimulator
Jump to navigationJump to search
imported>Orenh
Created page with "{{osslfunc |threat_level=None |function_syntax=vector osGetRegionSize() |ossl_example=<source lang="lsl"> default { touch(integer t) { llSay(0, "Region size: "..."
 
imported>Orenh
No edit summary
Line 5: Line 5:
default
default
{
{
     touch(integer t)
     touch_start(integer t)
     {
     {
         llSay(0, "Region size: " + (string)osGetRegionSize());
         llSay(0, "Region size: " + (string)osGetRegionSize());

Revision as of 13:10, 22 January 2014

vector osGetRegionSize()
Returns the size of the region in meters.

Usually this function returns 256x256. However, when called in the root region of a megaregion it returns the size of the megaregion.

Threat Level None
Permissions No permissions specified
Extra Delay No function delay specified
Example(s)
default
{
    touch_start(integer t)
    {
        llSay(0, "Region size: " + (string)osGetRegionSize());
    }
}