OsDetectedCountry
From OpenSimulator
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() { // Notify in local chat that the script is running llSay(0, "Script running"); } touch_end(integer num) { // Get the country in which the avatar is located string country = osDetectedCountry(0); // Notify in local chat about the detected country 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 using external user admin tools.  | |
See Also
- osGetAgentIP
 - osGetAgentCountry
 - osDetectedCountry