OsGetRegionSize
From OpenSimulator
(Difference between revisions)
(Created page with "{{osslfunc |threat_level=None |function_syntax=vector osGetRegionSize() |ossl_example=<source lang="lsl"> default { touch(integer t) { llSay(0, "Region size: "...") |
|||
(7 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{osslfunc | {{osslfunc | ||
− | |threat_level= | + | |threat_level=ignored |
+ | |permissions=true | ||
+ | |delay=0 | ||
|function_syntax=vector osGetRegionSize() | |function_syntax=vector osGetRegionSize() | ||
|ossl_example=<source lang="lsl"> | |ossl_example=<source lang="lsl"> | ||
default | default | ||
{ | { | ||
− | + | touch_start(integer t) | |
{ | { | ||
llSay(0, "Region size: " + (string)osGetRegionSize()); | llSay(0, "Region size: " + (string)osGetRegionSize()); | ||
Line 13: | Line 15: | ||
|description=Returns the size of the region in meters. | |description=Returns the size of the region in meters. | ||
− | Usually this function returns | + | Usually this function returns: |
− | However, when called in | + | Region size: <256.000000, 256.000000, 0.000000>. |
− | | | + | However, when called in a var/mega region it returns the size of the entire simulator. |
+ | |additional_info=This function was added in 0.8-post-fixes | ||
}} | }} |
Revision as of 05:55, 1 March 2020
vector osGetRegionSize()
| |
Returns the size of the region in meters.
Usually this function returns: Region size: <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) | |
default { touch_start(integer t) { llSay(0, "Region size: " + (string)osGetRegionSize()); } } | |
Notes | |
This function was added in 0.8-post-fixes |