LlSameGroup

From Second Life Wiki

Jump to: navigation, search

Template:Needs Translation/LSL/de Template:Needs Translation/LSL/es Template:Needs Translation/LSL/el Template:Needs Translation/LSL/he Template:Needs Translation/LSL/it Template:Needs Translation/LSL/ko Template:Needs Translation/LSL/nl Template:Needs Translation/LSL/hu Template:Needs Translation/LSL/no Template:Needs Translation/LSL/da Template:Needs Translation/LSL/sv Template:Needs Translation/LSL/tr Template:Needs Translation/LSL/pl Template:Needs Translation/LSL/pt Template:Needs Translation/LSL/ru Template:Needs Translation/LSL/uk Template:Needs Translation/LSL/zh-Hans Template:Needs Translation/LSL/zh-Hant

Contents

Summary

Buggy
Function: integer llSameGroup( key agent );
219 Function ID
0.0 Delay
10.0 Energy

Returns an integer boolean, that is TRUE if agent has the same active group, otherwise FALSE

• key agent avatar UUID that is in the same region

Also returns TRUE if the object is deeded to the same active group as agent

Caveats

  • Also returns TRUE if the object is not set to a group (i.e. "(none)") and either the AV with the given key has no group active or the function is called with a NULL_KEY

Important Issues

~ Search JIRA for related Bugs
Bug - A problem which impairs or prevents the functions of the product. Open - The issue is open and ready for the assignee to start work on it.    Attachments only change/inherit the active group when they're "rezzed"

Examples

// Gives inventory object only to agents with the same active group
default
{
    touch_start(integer total_number)
    {
        integer i;
 
        for (i = 0; i < total_number; i++)
        {
            if (llSameGroup(llDetectedKey(i))) // same as llDetectedGroup(i) (with llDetectedGroup, detected does not need to be in the sim)
              llGiveInventory(llDetectedKey(i), llGetInventoryName(INVENTORY_OBJECT, 0));
           else
              llSay(0, "Wrong active group!");
        }
    }
}

See Also

Functions

•  llDetectedGroup Used in conjunction with detection events

Deep Notes

Issues

~ Search JIRA for related Issues
Bug - A problem which impairs or prevents the functions of the product. Open - The issue is open and ready for the assignee to start work on it.    Attachments only change/inherit the active group when they're "rezzed"

Tests

•  llSameGroup Test
This article wasn't helpful for you? Maybe the related article at the LSL Wiki is able to bring enlightenment.
Personal tools
In other languages