Caroline Apollo
Lo Lo
Join date: 23 Oct 2003
Posts: 288
|
08-08-2009 10:36
Can you not detect an active group of a person and if their active group is a certain group specified by the group key the object gives inventory.
The object will not be set to the same group as the group you are looking for. So samegroup will most likely not be answer.
This is because the land is set to one group with auto return on and the item would be for another group.
Thanks!
|
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
|
08-08-2009 10:54
Nope.
All we have is llSameGroup() or llDetectedGroup(), both of which give you a boolean (TRUE/FALSE) result, based on a compare to the object's group setting.
llGetObjectDetails won't return the group of an avatar.
|
Nika Talaj
now you see her ...
Join date: 2 Jan 2007
Posts: 5,449
|
08-08-2009 11:01
To the best of my knowledge, there is no way. Both "group" commands in LSL only check to see if an avatar is set to the same group as the object, and there is no dataserver event or agent info command that returns the key or name of the avatar's active group. But I would love to be proved wrong, so I'll watch this thread  This may also be relevant: Group-owned (deeded) objects cannot give inventory. .
|
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
|
08-08-2009 11:02
If the object is set to a different group from the land it's on, and autoreturn is set, of course, it will be returned. Unless your group is very large and changes membership often, the best solution may be to store members' keys and check against that list when you need to hand out inventory.
_____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask....  Look for my work in XStreetSL at 
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
08-08-2009 19:20
if I understand, OP wants to have an object that auto-gives to a certain group, that isn't the group of the land it's on AND avoid auto return of that object?
create auto-giver, set it to the group that it's targeting, rez on the auto return land create a separate prim set that to the land group link the auto-giver to the land group prim, with the land group prim as root.
just don't take it to inventory.
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
|
08-08-2009 19:46
Even if that works now, I would expect any server upgrade to break it. You're not supposed to be able to have prims in an object in different groups, so it's a bug that it works.
|
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
|
08-08-2009 20:48
you could sub-divide a small parcel for just that object and either set it to the right group, or turn off auto-return
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
08-09-2009 03:38
From: Argent Stonecutter Even if that works now, I would expect any server upgrade to break it. You're not supposed to be able to have prims in an object in different groups, so it's a bug that it works. if they break that there's still one more method (but I expect that to be broken first)
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|