|
Saladin Nightfire
Scripter for HIRE
Join date: 6 Jan 2008
Posts: 20
|
08-23-2008 00:50
[quote from wiki] llRequestPermissions(key agent, integer perm)
Ask agent to allow the script to do perm, which can be any of the following constants joined together through bitwise OR (|). [end quote]
Now above.. now my simple question is:
If I set permissions in one script in a prim do the other scripts also get that permission in the same prim? Or would i have to setup permissions for all scripts that deal with those needing permission in all scripts..
Example:
I have vender but has 2 scripts that deal with 2 different things and both need to send split to a person other than owner do i need to set/get permissions for each script or just per prim?
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
08-23-2008 00:53
From: Saladin Nightfire If I set permissions in one script in a prim do the other scripts also get that permission in the same prim? Or would i have to setup permissions for all scripts that deal with those needing permission in all scripts. Each script gets the permission independently. It doesn't matter if they are in the same prim or even the same object. Also, the permissions granted and they key of the resident for whom they were granted (llGetPermissionsKey()) are dropped if the script is reset.
|
|
Saladin Nightfire
Scripter for HIRE
Join date: 6 Jan 2008
Posts: 20
|
08-23-2008 01:34
so i need to set permissions in each script? So llRequestPermissions needs to be passed in each script then 
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
08-23-2008 09:27
From: Saladin Nightfire so i need to set permissions in each script? So llRequestPermissions needs to be passed in each script then  Correct. Unless you can conceivably do the work requiring the permissions from one script and have the other script request actions from that script using link messages.
|
|
Lear Cale
wordy bugger
Join date: 22 Aug 2007
Posts: 3,569
|
08-23-2008 11:20
From: Hewee Zetkin Correct. Unless you can conceivably do the work requiring the permissions from one script and have the other script request actions from that script using link messages. Exactly, and it's a good idea to architect your widget to avoid having multiple scripts take permissions: people wouldn't like having to grant permission multiple times for the same thing. Consider dedicating one script to "own" the avatar, and have other scripts communicate with that script to interact with the avatar. For a game with multiple players, I'd dedicate a duplicate script to each player. (Some dance balls do this, for example.) Note also that a script can have any number of different permissions, but can have permissions for at most one avatar. It can't have this permission from him and that permission from her.
|