Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Returning an object to coordinates after unseat?

Animations Pfeffer
Registered User
Join date: 29 Jul 2007
Posts: 99
09-01-2007 16:01
Im coding some object that let the user sit on and moves... then, im trying that when user unseat, object returns to the place it was before user sits. All this in the same sim or at least in same region.

When user sit i do a simple:

vector OldPos = llGetPos();

And when unseat i do the

llSetPos(OldPos);

But that dont return really (at least not always) the object to the same place, dont know why. Sometimes it returns a few metters from the original place... why?

Any help?
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
09-01-2007 16:19
10 meter maximum move in one step in llSetPos.
_____________________
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
RJ Source
Green Sky Labs
Join date: 10 Jan 2007
Posts: 272
09-01-2007 16:55
Try using Warppos:

/15/fd/171905/1.html
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
09-01-2007 17:44
CODE

{
do
{
llSetPos(OldPos);
}
while
( llVecDist( llGetPos(), OldPos ) > 0.01 );
}
_____________________
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
Animations Pfeffer
Registered User
Join date: 29 Jul 2007
Posts: 99
09-01-2007 22:06
Thanks!!