Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

How to teleport from first floor to second floor of the same home?

Mauro Tammas
Registered User
Join date: 16 Mar 2007
Posts: 7
03-28-2007 04:18
I need do an obejct to teleport from floors of the same house, how can i do it?
Anastasia Hawks
Registered User
Join date: 29 Jan 2007
Posts: 10
03-28-2007 04:33
Here you go:

CODE
// Based on a script by Hank Ramos
//
// Some modifications by Shack Dougall and Ariane Brodie
// ** added info by Anastasia hawks: goto the location you want to teleport to and write down the coordinates
//and put them in the code below, and wherever you put the object you stick this script
//into it when you right click and teleport it will take you to that location

vector targetPos = <50, 100, 90>; //The x, y, z coordinates to teleport.
string fltText = "Floating text change me"; //label that floats above Teleport

reset()
{
vector target;

target = (targetPos- llGetPos()) * (ZERO_ROTATION / llGetRot());
llSitTarget(target, ZERO_ROTATION);
llSetSitText("Teleport");
llSetText(fltText, <1,1,1>, 1);
}
default
{
state_entry()
{
reset();
}

on_rez(integer startup_param)
{
reset();
}

changed(integer change)
{
llSleep(0.15);
llUnSit(llAvatarOnSitTarget());
reset();
}
}
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
03-28-2007 04:34
From: Mauro Tammas
I need do an obejct to teleport from floors of the same house, how can i do it?



try this thread
Just set the sit target coordinates.
If they are directly above each other then the z coordinate will change but not the others.
Sys Slade
Registered User
Join date: 15 Feb 2007
Posts: 626
03-28-2007 09:37
I just use the following in the ground floor (in the floor prim itself):
CODE

default{
state_entry(){
llSitTarget(<0,0,5.2>, ZERO_ROTATION);
llSetSitText("Teleport");
}

changed(integer change){
if(change & CHANGED_LINK){
llSleep(0.1);
key av=llAvatarOnSitTarget();
if(av){
llUnSit(av);
}
}
}
}

and the same again on the first floor, but with <0,0,-3.0> as the target.

Works fine for a 2 floor house with each floor 4.5m apart, and saves having to use extra prims for a teleporter.
If you have more than 2 floors, but use more than 1 prim per floor, you could have one side for TPing up and one for going down, without increasing your prim usage.
Mauro Tammas
Registered User
Join date: 16 Mar 2007
Posts: 7
:)
03-29-2007 00:53
Thanks, all scripts suggested works well

:))))
Zoha Boa
Registered User
Join date: 12 Mar 2007
Posts: 2,893
03-29-2007 08:39
Can this also be done from within a notecard.

Sort of landmark but then from floor to floor or from building to building in the same prim on different lands.
_____________________
ZoHa Islands: SL Real Estate Management since 2007
Looking for land ? You will find it @ ZoHa Islands !

Orange Beach Mall: 50 000 sqm shopping fun



http://slurl.com/secondlife/ZoHa%20Islands/222/227/27
website: http://www.ZoHa-Islands.com
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
03-29-2007 14:04
From: Zoha Boa
Can this also be done from within a notecard.

Sort of landmark but then from floor to floor or from building to building in the same prim on different lands.


Making it notecard driven would be relatively easy., depending on exactly what you wnated teh notecard format to contain.
The limitation of 300m/axis would still apply to each sit.
Zoha Boa
Registered User
Join date: 12 Mar 2007
Posts: 2,893
03-29-2007 14:36
Problem is fixed. The island owner did not set a parameter. Because of that it was not possible to teleport from land to land in the same sim; Only from sim to sim.
_____________________
ZoHa Islands: SL Real Estate Management since 2007
Looking for land ? You will find it @ ZoHa Islands !

Orange Beach Mall: 50 000 sqm shopping fun



http://slurl.com/secondlife/ZoHa%20Islands/222/227/27
website: http://www.ZoHa-Islands.com