Simple Teleport Script

Creating scripts
Post Reply
User avatar
Genavieve Page
Posts: 61
Joined: Thu Jun 02, 2016 2:54 pm
Has thanked: 116 times
Been thanked: 44 times

Simple Teleport Script

Post 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
User avatar
Selby Evans
Posts: 620
Joined: Wed Sep 04, 2013 6:00 pm
Has thanked: 1840 times
Been thanked: 822 times

Re: Simple Teleport Script

Post 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));
            }
        }
   }
}
These users thanked the author Selby Evans for the post (total 4):
Ilan TochnerMike LorreyGenavieve PageArton Tripsa
User avatar
Genavieve Page
Posts: 61
Joined: Thu Jun 02, 2016 2:54 pm
Has thanked: 116 times
Been thanked: 44 times

Re: Simple Teleport Script

Post by Genavieve Page »

Thank you so much Selby, very much appreciated.
Genavieve
User avatar
Elbereth Elentari 2
Posts: 30
Joined: Sat Oct 01, 2016 3:06 pm
Has thanked: 11 times
Been thanked: 15 times

Re: Simple Teleport Script

Post 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.
User avatar
Selby Evans
Posts: 620
Joined: Wed Sep 04, 2013 6:00 pm
Has thanked: 1840 times
Been thanked: 822 times

Re: Simple Teleport Script

Post 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
These users thanked the author Selby Evans for the post:
Genavieve Page
User avatar
Genavieve Page
Posts: 61
Joined: Thu Jun 02, 2016 2:54 pm
Has thanked: 116 times
Been thanked: 44 times

Re: Simple Teleport Script

Post by Genavieve Page »

Selby Evans wrote: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
Thank you so much Selby
Post Reply