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
Building hi_riseelevator_script  

hi_riseelevator_script

An example how to build a platform at 2,000 meters. Place this script in a box, and place an object named "Sky Platform" in the box. Then sit down on the box. At 2,000 meters it rezzes the Sky Platform. Note: There are some strange rules at this altitude, e.g. when you try to move an object, it will be placed at 768 m height. Same for llSetPos. But looks like the physical movement commands are working.

See below for an elevator to this height.

Category: Building
By : Shine Renoir
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

the Zip file

Download all files for hi_riseelevator_script
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. hi_riseelevator_script_1.lsl
Get file # 2. hi_riseelevator_script_2.lsl
1 // Space builder
2 //
3 // 2007 Copyright by Shine Renoir (fb@frank-buss.de)
4 // Use it for whatever you want, but keep this copyright notice
5 // and credit my name in notecards etc., if you use it in
6 // closed source objects
7 //
8 default
9 {
11 {
12 llSitTarget(<0, 0, 0.5>, ZERO_ROTATION);
13 }
14
15 changed(integer change)
16 {
17 // if someone sits down
18 if(change & CHANGED_LINK) {
20 if(av) {
21 vector start = llGetPos();
22 llOwnerSay("space lift engaged, destination: 2,000 m");
23 llSetBuoyancy(2.0);
25 vector pos = llGetPos();
26 while(pos.z < 2000.0) {
27 pos = llGetPos();
28 }
30 pos = llGetPos();
31 llRezObject("Sky Platform", pos, ZERO_VECTOR, ZERO_ROTATION, 0);
32 llSleep(0.1);
33 llUnSit(av);
34 llDie();
35 float delta = 1.0;
36 while(delta > 0.1) {
37 llSetPos(start);
38 pos = llGetPos();
39 delta = pos.z - start.z;
40 }
41 }
42 }
43 }
44 }

hi_riseelevator_script

For moving up to the platform, you could use a space elevator. Move it along the x-axis beside the platform on ground. On sit up it pushs you a bit, which moves you on the platform.

Category: Building
By : Shine Renoir
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

1 // Space elevator
2 //
3 // 2007 Copyright by Shine Renoir (fb@frank-buss.de)
4 // Use it for whatever you want, but keep this copyright notice
5 // and credit my name in notecards etc., if you use it in
6 // closed source objects
7
8 // direction and power to push after sit up
9 vector push = <50.0, 0.0, 0.0>;
10
11 // target height
12 float height = 2005.0;
13
14 default
15 {
17 {
18 llSitTarget(<0, 0, 0.5>, ZERO_ROTATION);
19 }
20
21 changed(integer change)
22 {
23 // if someone sits down
24 if(change & CHANGED_LINK) {
26 if(av) {
27 vector start = llGetPos();
28 llOwnerSay("space lift engaged, destination: 2,000 m");
29 llSetBuoyancy(2.0);
31 vector pos = llGetPos();
32 while(pos.z < height) {
33 pos = llGetPos();
34 }
36 pos = llGetPos();
37 llSleep(0.1);
38 llUnSit(av);
39 llPushObject(av, push, ZERO_VECTOR, FALSE);
40 float delta = 1.0;
41 while(delta > 0.1) {
42 llSetPos(start);
43 pos = llGetPos();
44 delta = pos.z - start.z;
45 }
46 }
47 }
48 }
49 }

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