OsGetAvatarList

From OpenSimulator

Revision as of 15:27, 8 June 2011 by Fritigern (Talk | contribs)

Jump to: navigation, search
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