|
Charmande Petion
Registered User
Join date: 4 Jan 2006
Posts: 118
|
01-15-2008 02:13
llRezObject("Sunday Laser", llGetRootPosition(), <0.0,0.0,0.0>, llGetRootRotation(), 0);
This line of code is in the child prim of an attachment. It is supposed to rez a long prim, or long linkset that is supposed to be a laser. I tried a single 10m long laser at first. It worked, it rezzed the prim where it was supposed to. When I link two 10m prims together to make 20m prim, and I use this same exact script. SL decides that it is a good time to start rezzing the prim a number of meters in a seemingly random direction. Now suddenly the prim is rezzing 8 meters in the positive Y direction. No matter which direction I face while using this script.
WHY DOES IT DO THIS?
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
01-15-2008 02:44
To get the avatar's position from an attachment, you may want to use llGetRot(). I forget exactly how llGetRootRotation() is supposed to work for this case, but I know llGetRot() works fine.
|
|
Cherry Hainsworth
Registered User
Join date: 31 Jul 2006
Posts: 125
|
01-15-2008 04:39
Stating the obvious .... are you quite certain the root prim is your original one? And have you tried it with an 18m laser, in case it's going past the 20m link limit when it rezzes?
|
|
Seifert Surface
Mathematician
Join date: 14 Jun 2005
Posts: 912
|
01-15-2008 07:53
Try llRezAtRoot rather than llRezObject.
_____________________
-Seifert Surface 2G!tGLf 2nLt9cG
|
|
Charmande Petion
Registered User
Join date: 4 Jan 2006
Posts: 118
|
01-15-2008 08:59
Yeah, I've tried a *lot* of things a--...
There's an llRezAtRoot() !? >__> Okay, trying that now.
If this works I am going to bear your children. D:
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
01-15-2008 09:25
Whether you use llRezObject() or llRezAtRoot() really depends on your circumstances. As far as I know it is the actual vector parameter that is limited to the 10m distance, so if there is a 10m difference between the geometric center of the object and the center of the root prim (this IS possible), you may only be able to use one of them for the desired rez location (or have to rez it invisible/phantom and move to the desired location before appearing).
|
|
ElQ Homewood
Sleeps Professionally
Join date: 25 Apr 2007
Posts: 280
|
01-16-2008 21:01
could you not rez the first one from the root prim, and on_rez rez the second from the first rezzed prim?
|