Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Rez Script.... possible??

Miroslaw Bukowski
Registered User
Join date: 12 Dec 2003
Posts: 46
08-08-2004 16:37
well.... I am currently working on a big project.... high above Cardova sandbox which requires me to take out the objects out of my inventory every time that the sandbox is reset. I want to make my life a little more simpler buy getting a rezz script. So is there a script that can rezz an object in any given coordinates?

I have tried one rezz script in which I have to put one script in the object that is gonna be razzed and one script in the cube in which all the objects that I want to razz are in....

but when I try to razz one object.... it doesn't rezz in the coordinates in which I want it to.... instead it just shows up about 5 M above the cube in which I have all the objects that are supposed to be razzed from. What do I need to do to make this work right o_0.

Here are the scripts.....

THIS ONE IS FOR THE OBJECT WHICH I WANT TO BE RAZZED...

===========================================

integer lis;
default
{
on_rez(integer p){
llResetScript();
}

state_entry()
{
lis = llListen(200,"121.08","232.94","450.15";);
}

listen(integer chan, string name, key id, string mess){
llListenRemove(lis);
vector pos = (vector)mess;
while(llGetPos() != pos){
llSetPos(pos);
}
}

}
===========================================

THIS ONE IS IN THE CUBE IN WHICH ALL MY OBJECTS ARE PLACED....

default
{
state_entry()
{
llListen(0,"",llGetOwner(),"rez 1";);
llListen(0,"",llGetOwner(),"derez";);
}
listen(integer channel,string name,key id,string message)
{
if(message=="rez 1";)
{
vector pos = llGetPos();
rotation rot = llGetRot();
vector offset = <121.08, 232.94, 450.15>;
offset *= rot;
pos += offset;
llRezObject("City Hall (left)", llGetPos(), ZERO_VECTOR, rot, 1);
llSay(200,(string)pos);
llStopPointAt();
}
if(message=="derez";)
{
llSay(15478,"shieldoff";);
}
}
}

===========================================
_____________________
01001101011010010111001001101111011100110110110001100001011101110010000001000010011101010110101101101111011101110111001101101011011010010010000001101111011101110110111001011010001000000110101000110000001100000010000100100001
Bosozoku Kato
insurrectionist midget
Join date: 16 Jun 2003
Posts: 452
08-09-2004 07:27
llRezObject() has a limit of 10m (from the position of the object doing the rez'n). If you have a "cube" that rez's things, then the rez call must rez the things within 10m of the cube.

Either script the cube to move where you want things rez'd, or script the things rez'd to move to where they should be.


Boso
Eggy Lippmann
Wiktator
Join date: 1 May 2003
Posts: 7,939
08-09-2004 07:40
Buy Land :D
You can place a rezzor anywhere in the world and have it travel anywhere else, using llSetPos in a loop. Then when it gets there, it can rez whatever you want.
But LL does not want you to do this. You shouldnt have any type of permanent content on linden land.
Miroslaw Bukowski
Registered User
Join date: 12 Dec 2003
Posts: 46
08-09-2004 14:52
hehe it's not a permanent content :).... just building it so I see how it would come out... before I get an Island o_0.... if it's crap... then if I would get an island... I would just waste my cash :)
_____________________
01001101011010010111001001101111011100110110110001100001011101110010000001000010011101010110101101101111011101110111001101101011011010010010000001101111011101110110111001011010001000000110101000110000001100000010000100100001
Wraith Jensen
I can walk thru walls....
Join date: 8 Aug 2004
Posts: 130
08-10-2004 08:29
I see his point, he's just not explaining it well.

He is not trying to "cheat" and make his object permenant. He's trying to find a quick way to rez all the components of a larger object he's working on, whenever he wants to work on it.

That's actually a neat idea. I can think of some good uses for that.
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
08-10-2004 08:41
Please surround LSL code with [CODE ] and [/CODE ] (and remove the space) this allows people to read it *alot* easier, trust me :)
==Chris
Tiger Crossing
The Prim Maker
Join date: 18 Aug 2003
Posts: 1,560
08-10-2004 10:43
Remember that you can select multiple objects and TAKE all of them at once to become a single inventory item. You can even move this item to a box. This also works for selections of more than 256 objects, the link limit.

I have a 283 prim house that I've linked in two halves, top and bottom. I selected them both and then right-clicked one and chose "Take" from the pie menu. Now the whole house is just one items and I can sell a box with that one item in it that anyone can drag to the ground.

Here's the big tip for doing this, though... When you drag something like this from your inventory or a box, make sure you are in edit mode!. (If you are taking something from a box, you already are, but remember to do this for inventory items.) This way, the rezed objects are still selected once they rez and you can mvoe them as a group.

You can pocket HUGE builds this way. Just make sure you don't try to move it until it has completely rezzed. Also, don't try to use the numbers in the edit window to move or position it. Only the last object selected will change. And when rotating hundreds of prims at once, you can really lag a sim.

The "Select Only My Objects" option from the Tools menu is your best friend.
_____________________
~ Tiger Crossing
~ (Nonsanity)