|
Sedona Mills
Registered User
Join date: 30 Jun 2007
Posts: 2
|
01-18-2009 13:32
Does anyone know of a way to determine the currenly activated group of an avitar using something like llDetectedKey to get the av's key? I don't want a comparison to the objects group (llSameGroup fuctionality). I'm looking for a way to just collect the av's currently activated group.
Any ideas?
Thanks Sedona Mills
|
|
Yingzi Xue
Registered User
Join date: 11 Jun 2008
Posts: 144
|
01-18-2009 14:14
Use llSameGroup(key) to check if an avatar has the same group active as the one set for the object the script is in.
|
|
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
|
01-18-2009 15:22
Yeah, but that's not what Sedona said she's looking for. I don't know of a way to do it, but I'd love to.
|
|
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
|
01-18-2009 15:27
Yeah. Sorry, but I suspect that it's intentional that llGetObjectDetails() won't return the Group of an agent, and that it's kind of an in-world "privacy" consideration. (I know: if you don't want people to know about a group, just don't activate it. But there's the feature of hiding your group tag, so somebody must want to activate a group without others knowing about it. Damned if I can figure out why, though.)
|
|
Zoey Helgerud
Overqualified
Join date: 13 Jun 2007
Posts: 44
|
01-18-2009 15:34
You can only test if a user or object is currently set to the same group as your scripted object.
There is no way to actually detect the name of key of the group, or test if a user is in the same group, if a different group is activated.
This is certainly intentional, because a lot of people would try to use it to make scripted objects that harass members of certain groups, like SL armies, or furry groups, or groups like w-hat, or to scan for people in those groups to ban or otherwise discriminate against them.
|
|
Sindy Tsure
Will script for shoes
Join date: 18 Sep 2006
Posts: 4,103
|
01-18-2009 15:39
From: Zoey Helgerud This is certainly intentional, because a lot of people would try to use it to make scripted objects that harass members of certain groups, like SL armies, or furry groups, or groups like w-hat, or to scan for people in those groups to ban or otherwise discriminate against them. I can, if I want to, ban anybody with red shoelaces from my place. Or anybody under 4 feet tall. Or people who are blonde. Or anybody not wearing 6 inch heels. LL doesn't care about this as long as I keep paying my tier. I suspect you're right about the reasons for the lack of LSL group functions but I'm not convinced it's consistant with their "your land, your rules" stance.
|
|
Zoey Helgerud
Overqualified
Join date: 13 Jun 2007
Posts: 44
|
01-18-2009 15:54
From: Sindy Tsure I can, if I want to, ban anybody with red shoelaces from my place. Or anybody under 4 feet tall. Or people who are blonde. Or anybody not wearing 6 inch heels. LL doesn't care about this as long as I keep paying my tier.
I suspect you're right about the reasons for the lack of LSL group functions but I'm not convinced it's consistant with their "your land, your rules" stance. They also allow some groups to be hidden from non-members, and allow users to make certain groups not show up in their profiles, so that you control who knows if you're in a group or not. You can ban whoever you want, but I'm glad LL does not feel they should help you persecute entire groups unjustly. You don't need a script to ban someone you don't want on your land.
|