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