OsGetNpcList
From OpenSimulator
(Difference between revisions)
(Created page with "{{osslfunc |threat_level= |function_syntax= |csharp_syntax= |ossl_example=<source lang="lsl"> // Example of osGetNpcList default { state_entry() { ... } }...") |
|||
(6 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{{osslfunc | {{osslfunc | ||
− | |threat_level= | + | |threat_level=None |
− | | | + | |permissions=${XEngine|osslParcelOG}ESTATE_MANAGER,ESTATE_OWNER |
− | | | + | |delay=0 |
+ | |function_syntax=list osGetNPCList() | ||
|ossl_example=<source lang="lsl"> | |ossl_example=<source lang="lsl"> | ||
− | // Example of | + | // |
− | + | // Example of osGetNPCList. | |
+ | // | ||
default | default | ||
{ | { | ||
− | + | 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."); | ||
+ | else | ||
+ | llSay(0, "NPC's in this sim (without avatars): " + llList2CSV(npcs)); | ||
} | } | ||
} | } | ||
</source> | </source> | ||
− | |description=... | + | |description=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]]. |
+ | |additional_info=This function was added in 0.9.0.1}} |
Revision as of 10:01, 7 December 2018
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 | ${XEngine|osslParcelOG}ESTATE_MANAGER,ESTATE_OWNER |
Extra Delay | 0 seconds |
Example(s) | |
// // Example of osGetNPCList. // default { 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."); else llSay(0, "NPC's in this sim (without avatars): " + llList2CSV(npcs)); } } | |
Notes | |
This function was added in 0.9.0.1 |