Page 1 of 1
Simple Teleport Script
Posted: Sun Jan 08, 2017 2:03 am
by Genavieve Page
Hello Lovely people, Just wondering if anyone would not mind posting ( if they are happy to) a script for a simple teleport up and down between floors for a house. it would be used in a house build for Kitely MP and set to copy , mod only within the script. I have one but could not get it to work very well.
Thank you in advance much appreciated
Genavieve Page
Re: Simple Teleport Script
Posted: Sun Jan 08, 2017 1:52 pm
by Selby Evans
This is one I have used with no problems. Goes to anywhere ingrid. For multiple flooors, you may want a script with select option.
Code: Select all
// change the following for somewhere that excites you, if you like :)
string region="Creative Collaborators"; // where you are going
vector position=<372,372,30>; // where you are landing
vector lookat=<1,0,0>; // what you are looking at.
beam(key agent)
{
osTeleportAgent(agent, region, position, lookat);
}
default
{
// touch or colliison, take yer pick.
//touch_start(integer c)
collision_start(integer c)
{
integer n;
for (n=0; n<c; n++)
{
if (llDetectedType(n) & AGENT)
{
beam(llDetectedKey(n));
}
}
}
}
Re: Simple Teleport Script
Posted: Sun Jan 08, 2017 11:35 pm
by Genavieve Page
Thank you so much Selby, very much appreciated.
Genavieve
Re: Simple Teleport Script
Posted: Fri Jan 13, 2017 6:45 am
by Elbereth Elentari 2
Many thanks for sharing this script, Selby. This is the most simple, reliable and efficient TP-script I have ever encountered.
Re: Simple Teleport Script
Posted: Fri Jan 13, 2017 10:46 am
by Selby Evans
Here is an article pointing scripting resources in virtual worlds, including OSSL. There are several good sources of free scripts.
http://virtualoutworlding.blogspot.com/ ... es-in.html
Re: Simple Teleport Script
Posted: Wed Jan 18, 2017 11:56 pm
by Genavieve Page