Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Make avie point west after teleporting

Nekki Lovenkraft
Registered User
Join date: 11 Dec 2007
Posts: 32
04-09-2008 18:54
Hello, I am trying to make a TP system that will place the avie facing west once they land, so far I have this script but it is pointing them east. Any suggestions??

vector target=<162,134,27>;
default
{
state_entry()
{
llSetText("Teleport to Center Stage",<255,255,255>,5);
llSetSitText("Teleport";);
rotation my_rot=llGetRot();
llSitTarget((target - llGetPos()) / my_rot,ZERO_ROTATION / my_rot);
}

changed(integer change)
{
lUnSit(llAvatarOnSitTarget());
}
}
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
04-09-2008 20:44
I've had similar issues. You may want to try taking control of the camera as well as the rotation of the seated avatar. Otherwise the avatar will usually turn to face where the camera is (/was before sitting) pointing. It's an annoying, fiddly little issue that usually leaves me throwing my hands up in the air and just saying, "good enough."