Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

SitTarget Teleporter Dumps Me in the Sky

Seven Shikami
Registered User
Join date: 22 Sep 2006
Posts: 82
12-14-2006 11:09
I'm using a very, very, very simple sittarget based teleporter. Ideally I want it to take me from one sky platform to another, but when I try, I get dumped in the middle of the sky and drop like a rock. So, as a test, I set it up to take me between these two coords:

160,244,281 (location of the teleporter)
157,216 282 (the other side of the same platform I'm standing on)

Even THAT dumps me at about 250m up and I drop like a rock...

What am I doing wrong? I'm not trying to surpass the 300m limit, I'm not trying to jump from sim to sim, I just want a very basic teleport and it's flopping...

Here's the code.

CODE
vector dest = <157, 215.6, 283>;
default
{
state_entry()
{
llSetSitText("Teleport");
llSitTarget(dest-llGetPos(), ZERO_ROTATION);
}
touch_start(integer i)
{
llSay(0,(string)llGetPos());
}
changed(integer change)
{
if (change & CHANGED_LINK)
{
if (llAvatarOnSitTarget() != NULL_KEY)
{
llSleep(0.5);
llUnSit(llAvatarOnSitTarget());
}
}
}
}
Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
12-14-2006 11:17
/54/d1/154787/1.html

Check the coordinates at the top of your screen and see if it's doing the same thing for you.
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
12-14-2006 11:22
Try adding 1 meter to the z axis of the destination. You may be ending up a little bit lower then the floor. I tried what you posted and it works fine.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Seven Shikami
Registered User
Join date: 22 Sep 2006
Posts: 82
12-14-2006 11:29
Ah, nuts, I figured out the problem.

The prim I was 'sitting' on was rotated. It was moving me the right direction along the wrong axis. Fixed now.