OsGetSittingAvatarsCount

From OpenSimulator

Revision as of 00:10, 6 March 2024 by Manni (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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


General
About This Wiki