OsGetAgentCountry

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
 
Line 27: Line 27:
 
|description=Returns a string that indicates the country in which an avatar is located.
 
|description=Returns a string that indicates the country in which an avatar is located.
 
|additional_info=
 
|additional_info=
Added November 11, 2018 in 0.9.1.0 (commit #7bcef500).
+
Added November 11, 2018 in 0.9.1.0 (commit #7bcef500).<br>
 +
The country information must be added to grid database using external user admin tools
 
}}
 
}}

Latest revision as of 06:27, 7 November 2019

string osGetAgentCountry(key avatarID)
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
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
Added November 11, 2018 in 0.9.1.0 (commit #7bcef500).

The country information must be added to grid database using external user admin tools

Personal tools
General
About This Wiki