Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llRezObject() rezes original object

Ludvaig Lindman
Registered User
Join date: 2 Feb 2007
Posts: 78
07-12-2007 11:54
Hi, I got two prims: prim A and prim B. Prim B is stored within prim A's inventory. If I click on prim A, I want to rez prim B. After 10 seconds prim B should delete itself. When clicking on prim A again, this should start right from the beginning.

I managed to do a script that almost did what I wanted it to do. I used llRezObject to rez prim B, a timer event to wait for 10 seconds and llDie() to delete prim B.

The problem is, that llRezObject() rezes original prim B and not a copy of it. So, this only works one time. I checked permissions and tried to set them to copy, but the result was just the same.

Is there a way to rez a copy of prim B???

thanks for helping.
Milambus Oh
Registered User
Join date: 6 Apr 2007
Posts: 224
07-12-2007 12:28
Set the permissions on B AFTER you place it into the inventory of A. Do this by right-clicking the copy of B that is inside of the inventory of A.
Ludvaig Lindman
Registered User
Join date: 2 Feb 2007
Posts: 78
07-12-2007 13:19
hm....does not work. Everytime the original inventory item gets rezed and after "lldie()" it is gone forever...
Milambus Oh
Registered User
Join date: 6 Apr 2007
Posts: 224
07-12-2007 13:52
You are setting the correct permissions on the copy of B that is located inside of A's inventory correct?

http://lslwiki.net/lslwiki/wakka.php?wakka=llRezObject
From: someone
Copying a to-be-rezzed object from an user's inventory to a rezed object's inventory changes the default permissions on the to-be-rezzed object inside the rezed object's inventory. So, the copied object inside the rezzing object's inventory needs to be right-clicked and have copy permissions set.
This is very annoying and easy to miss, because it only manifests when you give the object with the script to a new owner -- your own testing will work, but the rezed objects will disappear from the scripted object's inventory the first time they are rezed by a new owner!


From: someone
If the inventory object that is to be rezzed has copy permission, a copy of the object will be rezzed. However, if it doesn't have copy permission, the original will be rezzed and removed from the object inventory. Any subsequent calls to this function with the same inventory will then fail because the inventory object is gone. It's important to set copy permissions for the next owner if an object is to be sold (or given away) and is rezzed by llRezObject (unless only a single copy is rezzed).

If the inventory object that is to be rezzed does not have copy permission, and the object containing it is attached, the object will not rez, and result in the following error / warning : "Can't rez no copy objects from an attached object."
Ludvaig Lindman
Registered User
Join date: 2 Feb 2007
Posts: 78
07-12-2007 13:55
Got it :-) Thank you...had to reset script.