OsGetAgents

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m
m (Script change)
 
(7 intermediate revisions by 4 users not shown)
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"
+
|permissions=${OSSL|osslParcelOG}ESTATE_MANAGER,ESTATE_OWNER
|'''Threat Level''' || None
+
|delay=0
 
+
|function_syntax=list osGetAgents()
|- valign="top"
+
|ossl_example=<source lang="lsl">
|'''Function Syntax''' || <source lang="lsl">
+
list osGetAgents()  
+
</source>
+
|- valign="top"
+
|'''Example(s)||<source lang="lsl">
+
 
//
 
//
// Example of osGetAgents.
+
// osGetAgents Script Example
 
//
 
//
 +
 
default
 
default
 
{
 
{
 
     state_entry()
 
     state_entry()
 
     {
 
     {
         // Demo-Script
+
         llSay(PUBLIC_CHANNEL, "Touch to see osGetAgents usage.");
 
     }
 
     }
     touch_start(integer total_number)
+
 
 +
     touch_start(integer number)  
 
     {
 
     {
         llSay (0, "Agents in sim: "+ llList2CSV(osGetAgents()));
+
         llSay (PUBLIC_CHANNEL, "Agents in sim: " + llList2CSV(osGetAgents()));
 
     }
 
     }
}</source>
+
}
 
+
</source>
|}
+
|description=Returns a list of all the agents names in the region.  
 
+
|
Returns a list of all the agents names in the region.  
+
}}
 
+
[[Category:OSSL Functions]]
+

Latest revision as of 11:53, 24 November 2020

list osGetAgents()
Returns a list of all the agents names in the region.
Threat Level None
Permissions ${OSSL|osslParcelOG}ESTATE_MANAGER,ESTATE_OWNER
Extra Delay 0 seconds
Example(s)
//
// osGetAgents Script Example
//
 
default
{
    state_entry()
    {
        llSay(PUBLIC_CHANNEL, "Touch to see osGetAgents usage.");
    }
 
    touch_start(integer number) 
    {
        llSay (PUBLIC_CHANNEL, "Agents in sim: " + llList2CSV(osGetAgents()));
    }
}
Personal tools
General
About This Wiki