LlSameGroup
From Second Life Wiki
| LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Tutorials |
Contents |
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| | | VWR-5044 | [c] | 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!"); } } }
Deep Notes
Issues
~ Search JIRA for related Issues| | | VWR-5044 | [c] | 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.

