OsGetSittingAvatarsCount

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(Created page with "{{osslfunc |threat_level=ignore |permissions=true |delay=0|function_syntax=integer osGetPrimCount()<br> integer osGetPrimCount(key objectID)<br> |ossl_example=<source lang="ls...")
 
 
(2 intermediate revisions by one user not shown)
Line 1: Line 1:
 
{{osslfunc
 
{{osslfunc
|threat_level=ignore
+
|threat_level=ignored
 
|permissions=true
 
|permissions=true
|delay=0|function_syntax=integer osGetPrimCount()<br>
+
|delay=0|function_syntax=integer osGetSittingAvatarsCount()<br>
integer osGetPrimCount(key objectID)<br>
+
integer osGetSittingAvatarsCount(key objectID)<br>
 
|ossl_example=<source lang="lsl">
 
|ossl_example=<source lang="lsl">
  
 +
// This is a default state definition
 
default
 
default
 
{
 
{
 +
    // This event is triggered when the script is first started or reset
 
     state_entry()
 
     state_entry()
 
     {
 
     {
      llSay(0, "Script running");
+
        // Sends a message to the object owner saying "Script running"
 +
        llSay(0, "Script running");
 
     }
 
     }
 +
 +
    // This event is triggered when someone touches the object
 
     touch_start(integer num)
 
     touch_start(integer num)
 
     {
 
     {
         llOwnerSay(" this linkset has " + (string) osGetPrimCount() + " sitting avatars");
+
        // Sends a message to the object owner with the count of sitting avatars in the linkset
 +
         llOwnerSay("This linkset has " + (string) osGetSittingAvatarsCount() + " sitting avatars");
 
     }
 
     }
 
}
 
}
 +
 
</source>
 
</source>
 
|description=
 
|description=

Latest revision as of 23:10, 5 March 2024

integer osGetSittingAvatarsCount()

integer osGetSittingAvatarsCount(key objectID)

returns the number of sitting avatars on the current linkset or on the linkset that includes a prim with UUID objectID.
Threat Level This function does not do a threat level check
Permissions Use of this function is always allowed by default
Extra Delay 0 seconds
Example(s)
// This is a default state definition
default
{
    // This event is triggered when the script is first started or reset
    state_entry()
    {
        // Sends a message to the object owner saying "Script running"
        llSay(0, "Script running");
    }
 
    // This event is triggered when someone touches the object
    touch_start(integer num)
    {
        // Sends a message to the object owner with the count of sitting avatars in the linkset
        llOwnerSay("This linkset has " + (string) osGetSittingAvatarsCount() + " sitting avatars");
    }
}
Notes
This function was added in 0.9.3.0


Personal tools
General
About This Wiki