These forums are CLOSED. Please visit the new forums HERE
llCreateLink permissions |
|
LauraLynn OHare
Registered User
Join date: 24 Jun 2009
Posts: 4
|
08-28-2009 11:37
So I'm making something (vagueness is intentional) that starts out with a bunch of separate prims sitting around, and then allows you to click on the different parts you want, choose their size, and have them join together. I then have a big red button that you are supposed to click and have the ones you currently have selected link together. So if I understand correctly, there is no way to allow this to work for someone who is not the owner? Can I somehow change the owner without having to go through the inventory? I want the object to pop out and go to a different place close by and start running different scripts, so I don't want to just give the object straight into a person's inventory. Also I don't want the object to be modifiable....any ideas? Thanks!
|
EF Klaar
Registered User
![]() Join date: 11 Jun 2007
Posts: 330
|
08-28-2009 11:46
Would it work if the seperate prims were already linked, and the big red button just deleted the unselected ones?
|
LauraLynn OHare
Registered User
Join date: 24 Jun 2009
Posts: 4
|
link
08-28-2009 11:55
Wouldn't I have to then request permissions to break the links to delete the unselected ones?
|
Darien Caldwell
Registered User
![]() Join date: 12 Oct 2006
Posts: 3,127
|
08-28-2009 12:02
Permissions are static, as long as the script isn't reset. The owner could theoretically grant permission at say, the start of the script, and as long as that script wasn't reset, the permission would stay granted. Then any subsequent calls to make/break should occur without asking permission. However, this is theory, I've not tried it. It's possible the owner's presence would be required, or who knows what.
_____________________
|
LauraLynn OHare
Registered User
Join date: 24 Jun 2009
Posts: 4
|
08-28-2009 12:10
Okay, that actually sounds pretty promising. I will have to play around with it to see if it will work because when the new object moves to the next location, copies of all the used prims rez so that someone can make another, different object. Hopefully it will let me save the permission in the object in such a way that it works for rezzed copies.
Thanks! |
Vance Adder
Registered User
Join date: 29 Jan 2009
Posts: 402
|
08-28-2009 12:11
Why not just request PERMISSION_CHANGE_LINKS permissions when the owner sets the objects up? Maybe on rez?
Then later when an user comes along, they can click the prim to change it around and hit the red button to do the linking. It should link just fine as it will still have the proper permissions. Am I missing something obvious? ...lol... too slow today ![]() Hopefully it will let me save the permission in the object in such a way that it works for rezzed copies. I'm pretty sure that won't work. For every object you rez, the owner will need to be their to grant permissions. As a work around, you could always give the user some sort of object, let them rez it and have it rez the things for you and send messages to control what happens. That way they're the owner. |
LauraLynn OHare
Registered User
Join date: 24 Jun 2009
Posts: 4
|
08-28-2009 13:59
actually it is working! it's because when you rez an object, it stays in whatever state you're already in. So thanks everyone! I don't know why I didn't think of the permission thing!
|
EF Klaar
Registered User
![]() Join date: 11 Jun 2007
Posts: 330
|
08-28-2009 15:12
In case you need a plan B, maybe you could pre-link the prims and hide the unselected ones inside one that has been selected. Or even just alpha them out.
|
Vance Adder
Registered User
Join date: 29 Jan 2009
Posts: 402
|
08-28-2009 16:44
actually it is working! it's because when you rez an object, it stays in whatever state you're already in. So thanks everyone! I don't know why I didn't think of the permission thing! Now I'm not sure I understand. When an object is de-rezzed it should lose permissions, so when you rez it, you should have to re-acquire permissions. I probably don't quite understand what you are trying to do. I suppose you don't need to manipulate links again when you re-rez it? |
Jesse Barnett
500,000 scoville units
![]() Join date: 21 May 2006
Posts: 4,160
|
08-28-2009 17:57
Now I'm not sure I understand. When an object is de-rezzed it should lose permissions, so when you rez it, you should have to re-acquire permissions. I probably don't quite understand what you are trying to do. I suppose you don't need to manipulate links again when you re-rez it? There is no such a thing a de-rez. You set the permissions before you put them in the rezzer and when ever they are rezzed, no matter how many times you rez them, the permissions are already set. _____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum |
Vance Adder
Registered User
Join date: 29 Jan 2009
Posts: 402
|
08-29-2009 08:41
There is no such a thing a de-rez. You set the permissions before you put them in the rezzer and when ever they are rezzed, no matter how many times you rez them, the permissions are already set. of course there is such a thing as de-rez. Anytime you take, detach, or delete a rezzed object it becomes "derezzed". From the wiki: "Otherwise, the script will only lose the permission if it is reset or the object is derezzed (deleted, detached, or taken). " Don't you sort of have to "take" the object into your inventory, so you can then drop it in the rezzer? |
Jesse Barnett
500,000 scoville units
![]() Join date: 21 May 2006
Posts: 4,160
|
08-29-2009 10:08
of course there is such a thing as de-rez. Anytime you take, detach, or delete a rezzed object it becomes "derezzed". From the wiki: "Otherwise, the script will only lose the permission if it is reset or the object is derezzed (deleted, detached, or taken). " Don't you sort of have to "take" the object into your inventory, so you can then drop it in the rezzer? Link for that quotation please? You do not loose perms when you take an object into inventory and it is definitely not "de-rezzing" it. Have done it many, many times. Try it yourself. EDIT: Found link, new wiki, Not accurate and poor choice of words. Tracing edit back. EDIT EDIT: Strife added that caveat. I will ping him as soon as he gets around to clearing his overflowing PM inbox. _____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum |
SuezanneC Baskerville
Forums Rock!
![]() Join date: 22 Dec 2003
Posts: 14,229
|
08-29-2009 10:18
http://wiki.secondlife.com/wiki/LlAttachToAvatar
In my browser I just highlight a text passage and right click and select "Search with Google" and it opens a new tab with the search results. That quote appears at the above url and at http://wiki.secondlife.com/wiki/LlGiveMoney . _____________________
-
So long to these forums, the vBulletin forums that used to be at forums.secondlife.com. I will miss them. I can be found on the web by searching for "SuezanneC Baskerville", or go to http://www.google.com/profiles/suezanne - http://lindenlab.tribe.net/ created on 11/19/03. Members: Ben, Catherine, Colin, Cory, Dan, Doug, Jim, Philip, Phoenix, Richard, Robin, and Ryan - |
Darien Caldwell
Registered User
![]() Join date: 12 Oct 2006
Posts: 3,127
|
08-29-2009 10:23
You can De-Rez an item, but that has no effect on the script. Permissions are only lost of script reset. Unless the script is explicity coded to reset on Rez/Derez, the permissions remain.
_____________________
|
Jesse Barnett
500,000 scoville units
![]() Join date: 21 May 2006
Posts: 4,160
|
08-29-2009 10:33
You can De-Rez an item, but that has no effect on the script. Permissions are only lost of script reset. Unless the script is explicity coded to reset on Rez/Derez, the permissions remain. How can you derez an object? You can take into inventory, you can delete. Poor choice of words and misleading to people learning LSL. A frequent question here is how to make an object "derez" itself back to the inventory contents it was rezzed from using llRezObject or llRezAtRoot. There are no commands in LSL to take to inventory or "derez", only llDie. llRezObject & llRezAtRoot do not have opposite commands. llAttachToAvatar has a counterpart: llDetachFromAvatar. _____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum |
SuezanneC Baskerville
Forums Rock!
![]() Join date: 22 Dec 2003
Posts: 14,229
|
08-29-2009 10:36
Is there are good reason why an object can't go back inside the object it came from, or was this function just left out?
_____________________
-
So long to these forums, the vBulletin forums that used to be at forums.secondlife.com. I will miss them. I can be found on the web by searching for "SuezanneC Baskerville", or go to http://www.google.com/profiles/suezanne - http://lindenlab.tribe.net/ created on 11/19/03. Members: Ben, Catherine, Colin, Cory, Dan, Doug, Jim, Philip, Phoenix, Richard, Robin, and Ryan - |
Vance Adder
Registered User
Join date: 29 Jan 2009
Posts: 402
|
08-29-2009 10:53
Link for that quotation please? Every document in the new wiki (http://wiki.secondlife.com/wiki/LSL_Portal) involving a function requiring permissions contains this verbage (llStartAnimation, llTakeControls, etc.) Perhaps it should be updated if it is not true. I'm quite well aware that an script retains it's state when you take it into inventory. Thanks. |
Darien Caldwell
Registered User
![]() Join date: 12 Oct 2006
Posts: 3,127
|
08-29-2009 22:46
How can you derez an object? You can take into inventory, you can delete. Poor choice of words and misleading to people learning LSL. A frequent question here is how to make an object "derez" itself back to the inventory contents it was rezzed from using llRezObject or llRezAtRoot. There are no commands in LSL to take to inventory or "derez", only llDie. llRezObject & llRezAtRoot do not have opposite commands. llAttachToAvatar has a counterpart: llDetachFromAvatar. Rezzing means creating an instance in world. De-Rezzing means removing that instance from world. I've never thought that an issue. When something is in your inventory only, it's not rezzed ![]() _____________________
|