OsDetectedCountry
From OpenSimulator
(Difference between revisions)
Line 25: | Line 25: | ||
|description=Returns a string that indicates the country in which the avatar is located. | |description=Returns a string that indicates the country in which the avatar is located. | ||
− | |additional_info=This function only works when called from within Detection events (collision, collision_start, collision_end, sensor, touch, touch_start, touch_end) or in functions called by Detection events. | + | |additional_info=This function only works when called from within Detection events (collision, collision_start, collision_end, sensor, touch, touch_start, touch_end) or in functions called by Detection events.<br> |
+ | the country information must be added to grid database external user admin tools | ||
Added November 11, 2018 in 0.9.1.0 (commit #7bcef500). | Added November 11, 2018 in 0.9.1.0 (commit #7bcef500). | ||
}} | }} |
Revision as of 06:26, 7 November 2019
string osDetectedCountry(integer index)
| |
Returns a string that indicates the country in which the avatar is located. | |
Threat Level | None |
Permissions | Use of this function is always allowed by default |
Extra Delay | 0 seconds |
Example(s) | |
// // Sample script using osDetectedCountry // default { state_entry() { llSay(0, "Script running"); } touch_end(integer num) { string country = osDetectedCountry(0); llSay(0, "You are in country " + country); } } | |
Notes | |
This function only works when called from within Detection events (collision, collision_start, collision_end, sensor, touch, touch_start, touch_end) or in functions called by Detection events. the country information must be added to grid database external user admin tools Added November 11, 2018 in 0.9.1.0 (commit #7bcef500). |