This is the script:
---------------------------------------------------------------------------------------------------
key lastAVkey = NULL_KEY;
string fltText = "Leave Store";
vector dest = <203.000,247.000,58.000>;
default
{
state_entry()
{
llSetSitText("Teleport"
;llSetText(fltText, <1,1,1>, 1);
llSitTarget(dest-llGetPos(), <0,0,0,1>
;}
touch_start(integer i)
{
llSay(0,"Right click me and choose 'Teleport'"
;}
changed(integer change)
{
key currentAVkey = llAvatarOnSitTarget();
if (currentAVkey != NULL_KEY && lastAVkey == NULL_KEY)
{
lastAVkey = currentAVkey;
if (!(llGetPermissions() & PERMISSION_TRIGGER_ANIMATION))
llRequestPermissions(currentAVkey,PERMISSION_TRIGGER_ANIMATION);
llUnSit(currentAVkey);
llStopAnimation("sit"
;llResetScript();
}
}
}
-------------------------------------------------------------------------------------------------
Problem is that instead of the coordinates 203,248,58 I go to 224,239,58 EVERY TIME. that coordinate is on someone else's parcel. I just can't figure it out. I tried changing the coordinates (used 193,247,5
but that goes to 224,259,58.This is driving me nuts! I use the same script in several other places and they all work fine. I even tried to re-create the object from scratch and add a new copy of the script.
Any help is greatly appreciated.