OsGetAvatarList

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
LSL: '''[[list]] osGetAvatarList()''' <br />
+
{|  width="100%" style="border: thin solid black"
C#: '''[[LSL_List]] osGetAvatarList()'''
+
| colspan="2" align="center" style=background:orange | '''{{SUBPAGENAME}}'''
 +
|- valign="top"
 +
|'''Threat Level''' || None
  
Returns a strided list of the UUID, position, and name of each avatar in the region except the owner.
+
|- valign="top"
 
+
|'''Function Syntax''' || <source lang="lsl">
This function is similar to [[osGetAgents]] but returns enough info for a radar. It has a [[threat level]] of ''None''.
+
LSL: list osGetAvatarList()
 
+
C#: LSL_List osGetAvatarList()
<source lang="lsl">
+
</source>
 +
|- valign="top"
 +
|'''Example(s)||<source lang="lsl">
 
//
 
//
 
// Example of osGetAvatarList.
 
// Example of osGetAvatarList.
Line 23: Line 27:
 
</source>
 
</source>
  
 +
|}
 +
Returns a strided list of the UUID, position, and name of each avatar in the region except the owner.
  
 
+
This function is similar to [[osGetAgents]] but returns enough info for a radar.
[[Category:OSSL]]
+
[[Category:OSSL Functions]]

Revision as of 16:27, 8 June 2011

OsGetAvatarList
Threat Level None
Function Syntax
LSL: list osGetAvatarList() 
C#: LSL_List osGetAvatarList()
Example(s)
//
// Example of osGetAvatarList.
//
default
{
    touch_start(integer total_number)
    {
        list avatars = osGetAvatarList();
        if (avatars == [])
            llSay(0, "You must be the owner. There is nobody else here who could have touched me.");
        else
            llSay(0, "Avatars in this sim (without the owner): " + llList2CSV(avatars));
    }
}

Returns a strided list of the UUID, position, and name of each avatar in the region except the owner.

This function is similar to osGetAgents but returns enough info for a radar.

Personal tools
General
About This Wiki