From OpenSimulator

Revision as of 09:21, 27 June 2017 by Ferd Frederix (Talk | contribs)

Jump to: navigation, search
list OsGetNpcList()
C#: LSL_List OsGetNpcList()
Returns a strided list of the UUID, position, and name of each NPC in the region. Only available after 0.9 Commit # e53f43, July 26,2017

This function is similar to OsGetAvatarList.

Threat Level None
Permissions No permissions specified
Extra Delay No function delay specified
// Example of OsGetNpcList.
    touch_start(integer total_number)
        list npcs = OsGetNpcList();
        if (npcs == [])
            llSay(0, "You must be the owner. There is nobody else here who could have touched me.");
            llSay(0, "NPC'sin this sim (without avatars): " + llList2CSV(npcs));
Personal tools
About This Wiki