OsGetAvatarList

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(New page: LSL: '''list osGetAvatarList()''' <br /> C#: '''LSL_List osGetAvatarList()''' Returns a strided list of the UUID, position, and name of each avatar in the region except the owner....)
 
Line 22: Line 22:
 
}
 
}
 
</source>
 
</source>
 +
 +
 +
 +
[[Category:OSSL]]

Revision as of 09:41, 19 November 2010

LSL: list osGetAvatarList()
C#: LSL_List osGetAvatarList()

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. It has a threat level of None.

//
// 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));
    }
}
Personal tools
General
About This Wiki