OsGetAvatarList

From OpenSimulator

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

Revision as of 14:38, 12 June 2011

LSL: list osGetAvatarList() 
C#: LSL_List osGetAvatarList()
No descriptions provided
Threat Level None
Permissions No permissions specified
Extra Delay No function delay specified
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));
    }
}
Notes
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