Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

RezObject Weirdness

g0thik Gothly
Registered User
Join date: 30 May 2008
Posts: 8
06-26-2008 21:47
When an object is rezzed it seems to be rezzed in a weird position. The object is lying flat on it's back and not upright as I had originally created it.

Is there a way to rez the object upright?

I think it's rezzed in the odd position becuase of the "Zero_vector" and "zero_rotation" portion of code:
llRezObject("Coin", llGetPos() + < 0, 0, 0.3 >, ZERO_VECTOR, ZERO_ROTATION, 42);

Am I right? If so, how do I eliminate it without damaging the script?
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
06-26-2008 22:27
Rez a copy manually. Rotate it so that it is oriented like you want it when it is rezzed. Drop this script into the root prim:

CODE

default
{
state_entry()
{
llOwnerSay((string)llGetRot());
}
}


Then replace ZERO_ROTATION in your rezzer script with the output you get. (You can then delete the above script from the object you put it in if you like.)