|
sallyUK Jonson
Registered User
Join date: 3 Jan 2008
Posts: 1
|
11-01-2008 01:26
Hi
I am trying to make a door that will open when a certain group touches it.
The problem is that the door must belong to goup A , so that is will not be affected by the autoreturn , and I would like the door to open only when someone with group B active touches it.
I have got the door working as I want for Group A .. but cant see the trick to make the door belong to one group .. and detect another
Thanks for any help
|
|
Innula Zenovka
Registered User
Join date: 20 Jun 2007
Posts: 1,825
|
11-01-2008 04:40
Can't be done, as far as I know; the most a script can do is detect if the avatar has the same active group as the group to which the prim is set. It doesn't, in fact, know which group this is -- only that it's the same one or not. http://www.lslwiki.net/lslwiki/wakka.php?wakka=llDetectedGroup and http://www.lslwiki.net/lslwiki/wakka.php?wakka=llSameGroupIf the group isn't too large and the membership is reasonably stable, you might find it practicable to copy the membership list of the group to a notecard and have the door check that. Otherwise the only work-round that occurs to me is playing around with the parceling ... ask the owner if it's possible to subdivide the plot so the door stands in a 4x4 square for which auto-return is turned off (though that could, come to think of it, get messy quite quickly since it will affect the prim allowance for the plot. For what it's worth,on land I own, I sometimes find myself weighing the potential nuisance that could be caused me, my friends and my customers by having auto-return turned off for particular plots against the actual nuisance caused to us all by having it turned on, and deciding that turning it off is the lesser of the two evils.
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
11-01-2008 05:13
might it be easier if the the door were not deeded to the group, but owned by someone with permissions for the land, then set the group as anything you like?
I seem to remember a multi permission checker idea floating around, where you have single prims set to different groups(the main passes out a message, and waits for a response from the subs if the group matches any of them), but IIRC they aren't linkable that way, so it wouldn't work with a group only type of policy for land objects
TBH your biggest problem is going to be that the avs have to have that group active for any such scenario to work.
_____________________
| | . "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... | - 
|
|
Innula Zenovka
Registered User
Join date: 20 Jun 2007
Posts: 1,825
|
11-01-2008 05:42
From: Void Singer I seem to remember a multi permission checker idea floating around, where you have single prims set to different groups(the main passes out a message, and waits for a response from the subs if the group matches any of them), but IIRC they aren't linkable that way, so it wouldn't work with a group only type of policy for land objects .
Hmm.. I have just tried that and, rather to my surprise, it seems to work. If anyone wants to replicate it, the exact sequence was that I rezzed a prim, put this in (in mono) default { state_entry() { }
touch_start(integer total_number) { key av = llDetectedKey(0); if (llSameGroup(av) == TRUE) { llSay(0, "Same"); } else if (llSameGroup(av) == FALSE) { llSay(0, "Different"); } } }
and then changed my active group, drag-copied the prim and linked them. I now have two linked prims, each set to a different group, and which say "same" or "different" depending on which one I touch.
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
11-02-2008 01:23
now here's the fun part... will those changes hold after deeding? how about after rerez?
if they'll hold after deeding, that's the kicker, there are ways to make reconfiguring groups per prim easier (basically take it as a coalesced item, then on rez set the groups, and either manually relink or have a script that does) assuming it won't hold after rerez (not sure if only the root would be affected or if all prims would be..)
_____________________
| | . "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... | - 
|
|
Innula Zenovka
Registered User
Join date: 20 Jun 2007
Posts: 1,825
|
11-02-2008 05:39
From: Void Singer now here's the fun part... will those changes hold after deeding? how about after rerez?
Seem to survive deeding ok, though not re-rez.
|