OsGetAgentCountry
From OpenSimulator
string osGetAgentCountry(string FirstName, string LastName)
| |
| Returns a string that indicates the country in which an 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 osGetAgentCountry
//
default
{
state_entry()
{
llSay(0, "Script running");
}
touch_end(integer num)
{
key avatar_id = llDetectedKey(0);
string country = osGetAgentCountry(avatar_id);
llSay(0, "Avatar with id " +(string)avatar_id + " is 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.
Added November 11, 2018 in 0.9.1.0 (commit #7bcef500). | |