Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

i need a rez scritp

Byron McHenry
Registered User
Join date: 21 Sep 2004
Posts: 204
09-30-2004 09:36
i need a rez script that allows a person in a certain group to call objects. such as a ring or drink just small objects. im not a scripter so please do not say use this function with out telling me how to use it.
Zapoteth Zaius
Is back
Join date: 14 Feb 2004
Posts: 5,634
10-01-2004 06:07
CODE
default
{
touch_start(integer total_number)
{
llRezObject("Object Name", llGetPos() + <0, 0, 5>, ZERO_VECTOR, ZERO_ROTATION, 42);

}
}


You need to put this script into a object, then put an object into that and change the name (Currently Object Name) accordingly... This would rez whatever it is 5 metres above the thing that rezzed it.
Samhain Broom
Registered User
Join date: 1 Aug 2004
Posts: 298
10-01-2004 07:51
I have a question or two about this type of function:

When an item is rezzed this way, what are the requirements for the object that is rezzed.

Once that item is rezzed does it deplete itself from the inventory, (I think it would not, but just wanted to clarify).

What would the objects permissions be after the rezzing?

Is there a limit to the size of the item being Rezzed? (so many questions eh?)

Oh, and this is the link in the WIKI for this function.

I read the permissions paragraph at the bottom of that page. Does that mean that you cannot llRezObject() for something you want to keep "No Copy" permissions on? If this is true, is there a way to get around this and not have a prim count for the object?
_____________________
rm -rf /bin/ladden #beware of geeks bearing grifts
Nikolai Weber
Junior Member
Join date: 21 Nov 2003
Posts: 5
10-01-2004 17:10
If you want only people from a certain group to be able to rez the object, you can wrap the rez command above in a llSameGroup() call. This will allow people in the same group as the object is set to to rez the other object.

CODE

default
{
touch_start(integer total_number)
{
if (llSameGroup(llDetectedKey(0)) {
llRezObject("Object Name", llGetPos() + <0, 0, 5>, ZERO_VECTOR, ZERO_ROTATION, 42);
}
}
}


Edit: Attempt to answer Samhain's questions

As far as I know there are no requirements other than that you're rezzing it within 10m of the object with the rez script and that you have a copy of the object.

The item isn't deleted unless you don't have copy permissions, in which case the object is moved in world rather than being copied (just like your inventory)

The objects permissions would be whatever they were set to before you took the object and put it into your rezzer's inventory.

There isn't a size limit afaik.

If you have no copy on the object, you can only llRezObject it once. From the wiki:
From: someone
It is important to set copy permissions for the next owner if you intend to sell (or give away) such an object. Unless you want it to just work once.