OsGetAgentCountry

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m (Change See Also)
 
(3 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
|permissions=true
 
|permissions=true
 
|delay=0
 
|delay=0
|function_syntax=string osGetAgentCountry(string FirstName, string LastName)
+
|function_syntax=string osGetAgentCountry(key avatarID)
 +
|description=Returns a string that indicates the country in which an avatar is located.
 
|ossl_example=<source lang="lsl">  
 
|ossl_example=<source lang="lsl">  
 
//
 
//
Line 24: Line 25:
 
}
 
}
 
</source>
 
</source>
 
+
|additional_info=Added November 11, 2018 in 0.9.1.0 (commit #7bcef500).<br>
|description=Returns a string that indicates the country in which an avatar is located.
+
The country information must be added to grid database using external user admin tools
|additional_info=
+
Added November 11, 2018 in 0.9.1.0 (commit #7bcef500).
+
 
}}
 
}}
 +
== See Also ==
 +
* [[osGetAgentIP]]
 +
* [[osGetAgentCountry]]
 +
* [[osDetectedCountry]]

Latest revision as of 18:46, 5 December 2020

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
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
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


[edit] See Also

Personal tools
General
About This Wiki