Luc Aubret
Oreo-eater
Join date: 14 Sep 2005
Posts: 86
|
12-01-2005 00:43
Here's an odd question. I've been using llRequestPermissions to take av controls in an attached HUD, and every once in a while on attach or something I get a permissions request dialog, despite the fact that I was under the impression that an attached object automatically returns an okay to the permissions request.
If I switch states while the object is attached, and both states involve taking permissions, will that cause a request dialog? Or if I swich to a state that doesn't need the perms, and back to one that does, will that do it?
This is my first real foray into both HUD and requested permissions, so any answer you give will probably cause me to slap my own forehead in embarrassment.
|
Kayla Stonecutter
Scripting Oncalupen
Join date: 9 Sep 2005
Posts: 224
|
12-01-2005 08:38
If the llRequestPermissions() is inside the primary prim of an attached object, then it should automatically give permissions. If the object is not attached, or in a child prim, then it pops up with the dialog.
Granted permissions are persistant across state changes and don't need to be requested again.
If you request permissions, any previous permissions are removed and will need to be requested again if needed. For instance, if you request permission to take controls, then later request to trigger animation without also asking for controls, then the control permission will be removed.
|
Luc Aubret
Oreo-eater
Join date: 14 Sep 2005
Posts: 86
|
12-01-2005 12:30
*smack* Ow.
Was in a child prim.
Thanks, Kayla.
|