|
RaptonX Zorger
Registered User
Join date: 26 Jan 2006
Posts: 79
|
06-22-2006 12:48
I want to rez an object that I am wearing, but I want the rez offset to rotate with me if I turn around...and I don't want it to be in mouseclick mode...can it be done?
|
|
Kayla Stonecutter
Scripting Oncalupen
Join date: 9 Sep 2005
Posts: 224
|
06-22-2006 14:21
If you mean drop an object you are wearing via script, that can't be done. If you mean an object you are wearing rezzing another in it's contents, use this: //Offset is where to rez the object relative to you as if you were facing east //will adjust for whatever rotation you are facing when rezzing, mouselook not required vector Offset = <2,0,0>; vector Velocity = <0,0,0>; rotation Rot = llGetRot(); llRezObject("Object", llGetPos() + ( Offset * Rot ), Velocity, Rot, 0); Note: This must be in the root prim of the attachment, if not llGetRootRotation() should would instead of llGetRot().
|
|
Kokiri Saarinen
Quoted for truth
Join date: 7 Jan 2006
Posts: 44
|
06-23-2006 00:52
I believe llGetRot gets the root rotation regardless, and llGetLocalRot is used for finding the local rot.
-Kokiri
|