|
RichardEric Collins
Registered User
Join date: 29 Aug 2007
Posts: 16
|
09-24-2007 14:59
I've got a door with an access list defined by a note card. Everything is working a treat except for allowing the new owner to configure the door with the script. I have to allow the new owner modify rights so that they can drop the note card on the object, this leaves the door to be messed about with in ways not intended.
How can I allow the new owner to drop a note card on the door but not modify any other aspect of the door????
Thanks in advance.
|
|
Monica Balut
Beam-Me
Join date: 18 Feb 2007
Posts: 311
|
09-24-2007 16:08
When you say "this leaves the door to be messed about with in ways not intended" do you mean the physical aspects of the door or the script that controls the door? If you want to prevent the script from being messed with, you can set the properties of the script apart from those of the object itself. Open the object's inventory and right click on the script and select Properties.
I you need to keep the physical object itself from being modified, you could trap the changed event for type = CHANGED_ALLOWED_DROP. You first have to set llAllowInventoryDrop(TRUE). This allows anyone who doesn't have modify rights to drop anything in the inventory. Then you write code that deletes anything added that is not the notecard with a specific name.
|
|
RichardEric Collins
Registered User
Join date: 29 Aug 2007
Posts: 16
|
09-25-2007 07:34
Yup 'Monica Balut', this is what I've done in the end.  I remove note cards that were not created by the owner. Shame that they could not have had this as a permission option to save on code to do it, seems a very obvious thing to have been done. Maybe add a flag for llAllowInventoryDrop so give owner only drop permissions. IE: llAllowInventoryDrop(OWNER_ONLY) OWNER_ONLY can == 2, leaving TRUE as 1 and so backward compatibility intact.
|