Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Detecting same group if on group land

Monica Balut
Beam-Me
Join date: 18 Feb 2007
Posts: 311
05-28-2007 04:53
I am on land owned by my group. I have an object on that land but it is NOT deeded to the group, but merely shared with it. When another member of the group touches the object, I want it to detect that the agent is part of the "in" group. I would rather not to have to list all the members of the group separately.

Using llSameGroup does not work since the object is not deeded to the group. I would like the object to recognize the other group member as valid. The object will always be on the group owned land, so I was thinking of trying to do something with this. I stumped on how to do this. Any pointers?
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
05-28-2007 05:05
Hmmm... Really? If an object is *set* to group (but, as you say, not deeded to it), doesn't it return TRUE for llDetectedGroup() when touched by someone with that group active?
Talon Brown
Slacker Punk
Join date: 17 May 2006
Posts: 352
05-28-2007 05:32
llSameGroup() doesn't require the object to be deeded to the group, merely set to it in order to function properly in which case it will return TRUE if the user key passed to it has the same group active. I've written scripts that restrict menus to group members and they definitely work in this manner.
Monica Balut
Beam-Me
Join date: 18 Feb 2007
Posts: 311
05-28-2007 11:21
Dumb me. You are right. I thought the second (non-owner) avatar was in the same group. Turns out, he had a different group activated. Sorry.