Timon Tomba
Registered User
Join date: 12 Feb 2005
Posts: 1
|
03-21-2005 08:46
I'm a complete newbie to scripting, i have dabbled unsucsessfully lol and while i now have a door that opens, closes, locks, and only opens to people i specify on a list basis, i would really like the door to only open to people who are a member of a group.... How might i do this???
Hopefully its a easy as dumping a script onto the existing door.
If anyone has a script that does this?........?
Thanks
Timon Tomba
Anyone who helps here with a good solution will be rewarded!
|
Sein Edo
Registered User
Join date: 1 Mar 2005
Posts: 3
|
03-21-2005 08:50
You should use the function llSameGroup or llDetectedGroup (depending on your current code). If you need help IM me ingame. I'll be glad to help you.
Sein.
|
Malachi Petunia
Gentle Miscreant
Join date: 21 Sep 2003
Posts: 3,414
|
03-21-2005 09:09
Security doors, like doors in RL, only keep out people who aren't determined to get through them. It is useful to learn how to script a door like this (gotta remember llDetectedType()) but don't count on it keeping determined people out of a build.
Enjoy.
|
Judah Jimador
Registered User
Join date: 13 Mar 2005
Posts: 230
|
03-21-2005 15:54
Hi, I'm not clear on how the matching group thing works...if I set up a locking door while Group SuchAndSuch is active, and then switch my group off, does the group affiliation which was active at the script's rez-time stick to the script for matching purposes? Or, will an attempt to key the door fail if another group member (with group activated) tries it while I don't have the group active? I hope that made sense. It's been a Monday Thanks! -- judah
|
Tiger Crossing
The Prim Maker
Join date: 18 Aug 2003
Posts: 1,560
|
03-22-2005 12:10
If you edit an object, you can see what group, if any, it has been tagged with in the General tab. That is the group that the script will compare against on avatars. It must be their ACTIVE group, however.
And remember that anyone can swing their camera inside your locked building and choose an object to sit on. They will then be inside and the lock becomes moot.
_____________________
~ Tiger Crossing ~ (Nonsanity)
|