sndbad Ghost Posted June 1, 2016 Share Posted June 1, 2016 hello friends ,i am looking for group item giver with my group set not same simi got this one is work perfect but this work with same sim onlyhttps://community.secondlife.com/t5/Scripting-Library/Group-Item-Giver/td-p/99836is threre any way to fix that ? thanks Link to comment Share on other sites More sharing options...
Ruthven Ravenhurst Posted June 1, 2016 Share Posted June 1, 2016 I'm not sure what you mean by same sim. The avatar needs to touch it to receive the item. Are you trying to send an item to an entire group? That would need to be done through the group profile, assuming you have priveliges to send notices Link to comment Share on other sites More sharing options...
sndbad Ghost Posted June 1, 2016 Author Share Posted June 1, 2016 i mean i want set another group not same land group this script work for same land group tag i want another tag not same land group thanks Link to comment Share on other sites More sharing options...
Ruthven Ravenhurst Posted June 1, 2016 Share Posted June 1, 2016 Oh I see, you can set the object's group in the edit window. also if the land group is required for building, you can set a child prim to a different group, but make sure the root prim is set to the land group Link to comment Share on other sites More sharing options...
sndbad Ghost Posted June 1, 2016 Author Share Posted June 1, 2016 after when i drop a prim i change the group but dosent work idk why its work with same land group but when i set to onther group from // general > group > choose a group to share this object Link to comment Share on other sites More sharing options...
Ruthven Ravenhurst Posted June 1, 2016 Share Posted June 1, 2016 is the land set to not allow non-group scripts? that's the only thing I can think of that would make that not work Link to comment Share on other sites More sharing options...
Xiija Posted June 1, 2016 Share Posted June 1, 2016 put the UUID / groupkey of the group you want on a notecard. have the script read the notecard and store the UUID / groupkey as a key use llSameGroup() to check. Link to comment Share on other sites More sharing options...
Qie Niangao Posted June 2, 2016 Share Posted June 2, 2016 I'm a little concerned this might be confusing. It's fine to use a notecard (or many other ways) to store the other group's key, but llSameGroup() will only ever test for a match with the group to which the script is set, not any other. There's another current thread here that explores another way a script can determine the active group of a nearby avatar, almost always. Then it's a simple matter of comparing that key with whatever stored key it must match to get the item being given. The reason one might use that approach is it doesn't require the script to be set to the group being tested, which is useful if the land won't allow other groups to run scripts -- or even if the script owner isn't a member of that group. (Just for completeness: There's a trick that allows a child prim to be set to a group different from the object to which it's linked, and llSameGroup() running in that child prim will try to match its local group, which is mostly handy to survive auto-return. I've never felt entirely confident, however, that this would continue working.) Link to comment Share on other sites More sharing options...
Rolig Loon Posted June 2, 2016 Share Posted June 2, 2016 Qie Niangao wrote: [ .... ] (Just for completeness: There's a trick that allows a child prim to be set to a group different from the object to which it's linked, and llSameGroup() running in that child prim will try to match its local group, which is mostly handy to survive auto-return. I've never felt entirely confident, however, that this would continue working.) And it's worth mentioning that it doesn't survive being taken to inventory and re-rezzed. I've only used that trick a couple of times, mostly out of curiosity. Like you, I would hesitate to use it in anything important, especially in a product that was going to be released into the wide world of SL with my name on it. Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now