|
Monica Balut
Beam-Me
Join date: 18 Feb 2007
Posts: 311
|
11-27-2007 14:03
OK. At some point in my script I request and grant llRequestPermissions(llGetOwner(), PERMISSION_DEBIT); I later use llGetPermissions() to check the permission status and it returns PERMISSION_DEBIT as I would expect.
One of the wiki's states that if I run llRequestPermissions(llGetOwner(), FALSE) all permissions should be revoked. Only problem is if I run llGetPermissions() some time after that, it still returns PERMISSION_DEBIT. I would expect it to return 0. What's up with this? There's no mention of a problem in the jira or this forum. Has anyone else encountered this problem?
|
|
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
|
11-27-2007 15:11
i just tryed it and i get same thing, i did it with my control script, it didnt revoke my control override for a rc car i made
|
|
Darien Caldwell
Registered User
Join date: 12 Oct 2006
Posts: 3,127
|
11-27-2007 15:30
I've never heard that you can revoke permissions. It's always been my understanding the script has to be reset in order to revoke permissions. If the Wiki says that, i think it's wrong.
|
|
Monica Balut
Beam-Me
Join date: 18 Feb 2007
Posts: 311
|
11-27-2007 16:11
Yep. see http://www.lslwiki.net/lslwiki/wakka.php?wakka=llRequestPermissions. However, the official wiki http://wiki.secondlife.com/wiki/LlRequestPermissions makes no mention of it. It seems that you would want a script to be able to do that so permissions, especially PERMISSION_DEBIT, are not always on. Has anyone found how to revoke a permission via script?
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
11-27-2007 20:56
yup, request those permissions from someone else, because a single script can only hold permissions for one person at a time, I think you can even request different permissions for the effect (havent tried that)... the only caveat would be that permissions have to be granted by the new request to wipe the old ones
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
|
Monica Balut
Beam-Me
Join date: 18 Feb 2007
Posts: 311
|
11-28-2007 04:55
I can "revoke" e.g. PERMISSION_DEBIT by overriding it with some other permission e.g. PERMISSION_ATTACH. I just can't enter a 0 to revoke all permissions. I wonder if this has to go thru runtime_permissions in order to take effect. I'll have to see if it will take a number for some non-existent permission.
|
|
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
|
11-28-2007 16:14
Well, you can use any value; if there is not an actual permission for it, the blue dialog will still pop up, but the permission description for it that is being requested will be blank. If the user clicks "Yes", the permissions will have that value. IE, if you use 4096, it will result in the permission flags being set to 4096 if the user clicks "Yes".
I think it is a new bug, as requesting 0 used to do as the old wiki says, and release all current permissions.
Other than that, the only other way I know of to clear permissions is to reset the script. Something which you can't always do.
|