OsGetAgentIP
From OpenSimulator
(Difference between revisions)
m |
|||
Line 27: | Line 27: | ||
|} | |} | ||
− | Requires: key | + | Requires: ''key uuid'' of agent to get IP address for. |
Returns: string representing the IP address returned. | Returns: string representing the IP address returned. | ||
Line 35: | Line 35: | ||
Notes: | Notes: | ||
− | Unknown if this function requires a valid | + | Unknown if this function requires a valid ''Detect'' event such as touch or collision. |
Unknown what is returned for IPv6. | Unknown what is returned for IPv6. | ||
Line 41: | Line 41: | ||
[[Category:OSSL Functions]] | [[Category:OSSL Functions]] | ||
− |
Revision as of 15:24, 8 June 2011
OsGetAgentIP | |
Threat Level | High |
Function Syntax | string OsGetAgentIP(key uuid); |
Example(s) | // // Example of osGetAgentIP // default { state_entry() { // Demo-Script } touch_start(integer total_number) { llSay (0, "Your IP is : "+ osGetAgentIP(llDetectedKey(0))); } } |
Requires: key uuid of agent to get IP address for.
Returns: string representing the IP address returned.
Possible Exceptions thrown:
System.Exception: OSSL Runtime Error: osGetAgentIP permission denied. Allowed threat level is VeryLow but function threat level is High.
Notes: Unknown if this function requires a valid Detect event such as touch or collision.
Unknown what is returned for IPv6.