OsGetRegionSize

From OpenSimulator
Revision as of 01:58, 6 December 2020 by imported>Djphil (Whoops)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
vector osGetRegionSize()
Returns the size of the region in meters.

Usually this function returns: <256.000000, 256.000000, 0.000000>
However, when called in a var/mega region it returns the size of the entire simulator.

Threat Level This function does not do a threat level check
Permissions Use of this function is always allowed by default
Extra Delay 0 seconds
Example(s)
//
// osGetRegionSize Script Exemple
// Author: djphil
//

default
{
    state_entry()
    {
        llSay(PUBLIC_CHANNEL, "Touch to see osGetRegionSize usage.");
    }

    touch_start(integer number)
    {
        llSay(PUBLIC_CHANNEL, "The region size is " + (string)osGetRegionSize());
    }
}
Notes
This function was added in 0.8-post-fixes