Join us in Outworldz at www.outworldz.com:9000 or follow us:

Search dozens of selected web sites for OpenSim and LSL script

New! Script Meta-Search will search thousands of scripts here and at other sites for LSL or Opensim scripts.
Loading

Want to add a script or a project? Upload it and a half million people will see it and your name here this year.

Home   Show All
Category: Contributor: Creator
Teleport Teleportation_with_rotation  

Teleportation_with_rotation

Edit the variable targetPos to set the target position you will end up at. I also set the prim to from the normal 'touch' to 'sit'. One click and you teleport

Category: Teleport
By : Anonymous
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

the Zip file

Download all files for Teleportation_with_rotation
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Teleportation_with_rotation_1.lsl
1
2 vector targetPos = <13, 119, 40>; //The target location
3
4 reset()
5 {
6 vector target;
7
8 target = (targetPos- llGetPos()) * (ZERO_ROTATION / llGetRot());
11 }
12 default
13 {
15 {
16 reset();
17 }
18
19 on_rez(integer startup_param)
20 {
21 reset();
22 }
23
24 changed(integer change)
25 {
27 reset();
28 }
29 }
30
31 // END //

Back to the Best Free Tools in Second Life and OpenSim.