Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Teleporting Script

Iwana Fouquet
Registered User
Join date: 6 Jul 2006
Posts: 20
07-17-2007 08:37
Hi,

Is there a script that I can put in a prim so that if somebody sits on the prim, they teleport to a specified location? I have tried various teleporting scripts but they either have a 250m limit, you land up to 20m from your destination, you hit a wall on your way, or the teleport is auto-returned to my inventory because it cannot enter (go through) someones parcel.

Thanks.
Xplorer Cannoli
Cache Cleaner
Join date: 18 Sep 2005
Posts: 1,131
07-17-2007 08:44
From: Iwana Fouquet
Hi,

Is there a script that I can put in a prim so that if somebody sits on the prim, they teleport to a specified location? I have tried various teleporting scripts but they either have a 250m limit or are returned to me because they cannot enter (go through) someones parcel.

Thanks.


Have you tried the SIT ON OBJECT tool under the General tab, at the very bottom? That worked for my TP board.
Tengu Yamabushi
Registered User
Join date: 25 Sep 2005
Posts: 191
07-17-2007 08:46
<snipped from an older post on the same subject, see /327/f9/155897/1.html#post1363678>

// Simple sit-on-a-prim transporter with access list - have fun!

list access=["John Smith","Jane Doe"];
vector Destination = <200.3,56.0,530.0>; //put your destination here, must be in the same sim

init()
{
llSitTarget(<0.0,0.0,0.1>,ZERO_ROTATION);
}

default
{
state_entry()
{
init();
}
on_rez(integer times)
{
init();
}

changed(integer change) {
if (change & CHANGED_LINK)
{
key agent = llAvatarOnSitTarget();
if (agent != NULL_KEY)
{
if (llListFindList(access,[llKey2Name(agent)]) == -1)
{
return;
}
vector oldpos=llGetPos();
while (llVecDist(llGetPos(), Destination) > 0.001) llSetPos(Destination);
llUnSit(agent);
while (llVecDist(llGetPos(), oldpos) > 0.001) llSetPos(oldpos);
}
}
}
}

One using 'llWarpPos' will "get you there faster" (I'm not in-world now, or I'd drop one on you), but the above is simple and will work.

(Edit: the 'WarpPos' solution might be better for you wrt the 'no entry' sections you're trying to go through. Alternatively/additionally, you can change the code above to break the journey into multiple waypoints - essentially 'going around' the blocked areas.)

Have fun!
Iwana Fouquet
Registered User
Join date: 6 Jul 2006
Posts: 20
07-17-2007 08:56
From: Tengu Yamabushi

list access=["John Smith","Jane Doe"];
vector Destination = <200.3,56.0,530.0>; //put your destination here, must be in the same sim


Same sim :( Does this teleport over 250m & is it an accurate landing?
Kidd Krasner
Registered User
Join date: 1 Jan 2007
Posts: 1,938
07-17-2007 08:56
You really should ask this in the Scripting Tips forum. There are a number of issues involved. The most reliable approach is to just use a landmark, forcing the user to click through the map to teleport.
Tengu Yamabushi
Registered User
Join date: 25 Sep 2005
Posts: 191
07-17-2007 10:57
From: Iwana Fouquet
Same sim :( Does this teleport over 250m & is it an accurate landing?


It will go over 250m, and it is an accurate arrival. But it must be in the same sim, yes.
Ingrid Ingersoll
Archived
Join date: 10 Aug 2004
Posts: 4,601
07-17-2007 10:59
From: Iwana Fouquet
Hi,

Is there a script that I can put in a prim so that if somebody sits on the prim, they teleport to a specified location? I have tried various teleporting scripts but they either have a 250m limit, you land up to 20m from your destination, you hit a wall on your way, or the teleport is auto-returned to my inventory because it cannot enter (go through) someones parcel.

Thanks.


Cubey Terra has one that goes over 250m. It's called the markII or something and it was free at his store in Abbotts months ago.
Elex Dusk
Bunneh
Join date: 19 Oct 2004
Posts: 800
07-17-2007 11:21
I use the Bubble Teleporter from Candyland. It would be highly suitable for your need of object-based "teleportation" beyond the range of 300-meters. I recommend it.
Cubey Terra
Aircraft Builder
Join date: 6 Sep 2003
Posts: 1,725
07-25-2007 12:17
I have a new teleporter -- the Mk.V. It's very easy to set up and goes anywhere in a sim up to 768m altitude.

Link: /117/f8/199376/1.html
_____________________
C U B E Y · T E R R A
planes · helicopters · blimps · balloons · skydiving · submarines
Available at Abbotts Aerodrome and XstreetSL.com