|
XShade Foley
Registered User
Join date: 11 Feb 2006
Posts: 12
|
06-23-2006 15:37
how do you make a access list for a door or a nother item so only people on the list can use it
|
|
MeLight Korvin
Im on da Use
Join date: 4 Jun 2005
Posts: 99
|
06-23-2006 16:40
make a list, each time the owner wants to add someone to the list he would say something like '/1 add name lastname', use llGetSubString() function to derive the actual name from that command, and add it to the list. Afterwards when someone clicks the door, run a for loop through the list to see if that person's name is on the list, if it is, open if not, umm than dont 
_____________________
Boobs are remote controls for the male brain. Lemmie push some buttons!!!
|
|
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
|
06-23-2006 17:41
something like list access =["me","you","rover"]; default { touch_start(integer t) { if (llListFindList(access,llDetectedName(0)) != -1) llSay(0, "On the list"); else llSay(0,"you are not on the list"); } }
|
|
XShade Foley
Registered User
Join date: 11 Feb 2006
Posts: 12
|
06-23-2006 18:21
cool thx
|
|
Rodrick Harrington
Registered User
Join date: 9 Jul 2005
Posts: 150
|
06-23-2006 22:07
you might also wanna rund a few llToLowers in there also . . . both llToLower(llDetectedKey(0)) to check with and make sure you llToLower the command that adds to the list. What this does is make sure case issues when adding to the list still goes through.
|
|
Angela Salome
Registered User
Join date: 6 Oct 2005
Posts: 224
|
06-24-2006 00:58
From: XShade Foley how do you make a access list for a door or a nother item so only people on the list can use it Create a notepad and write all the names of the people who are allowed to pass in the notecard. The security object reads the notecard and now knows which avatars are allowed to pass through. Each door communicates with the security object through shouts on a secret channel and asks if the avatar is permitted. The security object replies yes or no and the door responds appropriately. That way you only need to have the one list of names instead of having to constantly maintain many doors.
|