Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

How is PERMISSION granted when owner is not present?

AnnMarie Otoole
Addicted scripter
Join date: 6 Jan 2007
Posts: 162
09-06-2008 22:30
When a visitor touches object A, it will rez object B.
Object B has a llRequestPermissions(llGetOwner(), TYPE OF PERMISSION);
How will permission be granted since the owner may be off line?

I've tested it and the permission is granted but they say not to rely on it being granted.
If it works once will it work all the time?
Lightwave Valkyrie
Registered User
Join date: 30 Jan 2004
Posts: 666
09-06-2008 23:04
grant permission in state_entry before dropping into object A
state_entry runs only once when saved or reset
object B should not have an on_rez resetscript
_____________________
L$ is the root of all evil
videos work! thanks SL :)
AnnMarie Otoole
Addicted scripter
Join date: 6 Jan 2007
Posts: 162
09-06-2008 23:46
OK thanks. That is what I was doing and it appears that the original permission sticks though un-rezzing/saving, placing in A's inventory, and subsequently re-rezzing.
Lightwave Valkyrie
Registered User
Join date: 30 Jan 2004
Posts: 666
09-07-2008 00:12
yes state_entry is only run once :)
thats why a lot of listen getowner wont work in a transfer with out a reset
_____________________
L$ is the root of all evil
videos work! thanks SL :)