AuntieJoan Posted August 24, 2014 Share Posted August 24, 2014 HiI have a door in a location that has 2 groups occupying it. I want the door only to be able to be locked and unlocked by people in one of those groups. Can I specify the actual group name? thank you Link to comment Share on other sites More sharing options...
Ceera Murakami Posted August 25, 2014 Share Posted August 25, 2014 For a script to detect someone is in a particular group, the object it is in has to be set to the same group, they have to touch the prim the script is in, and they have to be wearing that tag at the time. A script can not detect all groups a person is in - only the group whose tag they are wearing, and only if the group tag matches the group of the prim they touched. So if group A can open the door, and anyone else, including group B, can not, you need to set the prim to group A, and use the LSL command llDetectedGroup or llSameGroup. This also means you can't make a single script that responds only to members of two or more specific groups. It would require a separate linkset of prims and a separate script for each group. To do a door that two specific groups could open, use a separate button prim for each group, and have that prim communicate with the door script in the door's linkset Group A could then open it by touhing the "Group A Members" button, and the same with group B and their button. 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