Jump to content

Door locking Dilemna


AuntieJoan
 Share

You are about to reply to a thread that has been inactive for 3530 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

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

You are about to reply to a thread that has been inactive for 3530 days.

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
 Share

×
×
  • Create New...