Don't click here unless you want to be banned.

LSL Wiki : llSameGroup

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are
integer llSameGroup(key id);

Returns TRUE if the agent/object associated with id has the same active group (and is currently in the same simulator) as the object the script is in. If not, this function returns FALSE.

Note: "group" does not refer to links but, rather, collaborative groups of users.

Passing NULL_KEY as id will return TRUE if the object's active group is set to "none", FALSE otherwise.

llSameGroup will return TRUE if passed the key of the group itself. This allows a script to determine if it's in an object over group-owned land, or if an object is group-deeded.

Q: I'm trying to use this command to check the active group of a sitting avatar aginst the objects own group but it always comes back false (unless i have the active group of the object set to none in which case it always returns true), can this command not be used in this manner?
A: Maybe the avatar sitting has a different active group than the object checking with the script

This article wasn't helpful for you? Maybe the related article at the LSL Portal is able to bring enlightenment.

Functions | Agent/Avatar | Group
Comments [Hide comments/form]
Is this group as in linked set, or group as in player organization?
-- GuzarFonzarelli (2004-01-22 11:28:43)
Player groups, like NexCorp.
-- EzharFairlight (2004-01-22 11:54:39)
"llSameGroup will return TRUE if passed the key of the group itself. "
How can one get the key to a group? I dont see any LSL calls that give it, nor any place in the client's "groups dialog".
-- ChambersCharles (2006-11-20 05:04:26)
You can't get a groups key, but it doesn't matter. This is the only function (that I am aware of) that can work with group keys. The sentance after your quote should give you a hint where you might encounter a group key (aka as reported as an objects owner).
-- BlindWanderer (2006-11-20 06:41:40)
llGetOwner() returns group keys for group-deeded objects. See "Group-Owned Objects"
-- (2007-03-04 22:42:15)
llGetParcelDetails will also give you the group's key.
-- (2007-11-26 11:12:22)
Attach a comment to this page: