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 Teleport-Region  

Teleport-Region

Teleport witin a sim

Category: Teleport
By : Vincent Nacon
Created: 2013-10-14 Edited: 2013-10-14
Worlds: Second Life

the Zip file

Download all files for Teleport-Region
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Script.lsl
1
2 ////////////////////////////////////////////////////////
3 // Written by Vincent Nacon
4 // Released into the Public Domain
5 // I'm sick and tired of WarpPos and <0,0,0> bug.
6 // Feb 26th 2012
7 ////////////////////////////////////////////////////////
8
9 //What to do?
10 //
11 // Just place position (in vector form) where you want to drop avatar at in the prim's description.
12
13 default
14 {
15 changed(integer change)
16 {
17 vector targetPosition = (vector)llGetObjectDesc();
18
19 key sittingAvatar = llAvatarOnSitTarget();
20
21 if(sittingAvatar)
22 {
23 vector positionToReturnTo = llGetPos();
24
25 llSetRegionPos(targetPosition);
26 llUnSit(sittingAvatar);
27 llSetRegionPos(positionToReturnTo);
28 }
29 }
30
32 {
33 llSitTarget(<0.0, 0.0, 0.1>, ZERO_ROTATION);
34 }
35 }

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