TXGorilla Falcone
KWKAT Planetfurry DJ
Join date: 4 May 2004
Posts: 176
|
04-08-2005 12:17
I am needing a script that when the object is rezzed it will go to a predesignated XYZ like x128 y120 z16.2
I have a structure that I usualy had placed in a sandbox and it takes a while to align everything. I got parts that need to be placed in an exact spot for it to function correctly.
I think the highest my objects go is 750z and also got a floor at 500z
If possable have the script when rez Reset/Align to given XYZ/And Stop that way when I pick up the object when and then drop it it will do just that... I will be placeing this in all the parts to speed build up
Also I may need a script to rez everything from a single prim as to simplify things a bit.
_____________________
Drunken Monkeys danceing on the tables. Falling from the sky just like in a fable.
|
TXGorilla Falcone
KWKAT Planetfurry DJ
Join date: 4 May 2004
Posts: 176
|
possable patchwork on a script?
04-08-2005 15:42
Ok I found this script and I forget who made it or I would post the name... It supposeavly sets the object to the last known position usefull for ppl who build on sight and sell sell it for them to rez at the same spot... but can it be reverse engineered to place as a given spot? Please sumone help me... Edit: and I see that it is to remove itself... can that be changed to just make it stop so I dont have to pull any fancy footwork to get it in a rezzing box From: someone vector pos; string desc; default { state_entry() { pos = llGetPos(); llSetObjectDesc((string)pos); } on_rez(integer num) { desc = llGetObjectDesc(); llSetPos((vector)desc); while ( llVecDist(llGetPos(), (vector)desc) > 0.001 ) llSetPos((vector)desc); { llSetPos((vector)desc); if((vector)desc == llGetPos()) { llRemoveInventory(llGetScriptName()); } } } }
_____________________
Drunken Monkeys danceing on the tables. Falling from the sky just like in a fable.
|
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
|
04-08-2005 16:11
vector pos = <128.0,128.0,128.0>; // Put the vector of the object's intended position within the sim here default { on_rez(integer num) { while ( llVecDist(llGetPos(), pos) > 0.1 ) llSetPrimitiveParams([PRIM_POSITION,pos]); llSetPrimitiveParams([PRIM_POSITION,pos]); } } I'm using llSetPrimitiveParams() because it can set objects a bit higher than llSetPos() can.
|
TXGorilla Falcone
KWKAT Planetfurry DJ
Join date: 4 May 2004
Posts: 176
|
:d Ty
04-08-2005 16:24
 TY Jill And please anyone that has another opinion please post I wont be able to test anything till monday when I get home but these are goin on my USB Pen as txt files so I can transfer
_____________________
Drunken Monkeys danceing on the tables. Falling from the sky just like in a fable.
|