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
Flight Assist Flight  

Flight

Flight.lsl

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

the Zip file

Download all files for Flight
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Flight_1.lsl
1
2 integer moving = FALSE;
3 key passer;
4 key owner;
5 integer speed=10000;
6
7 default
8
9 {
11 {
12 owner=llGetOwner();
13 llListen(0,"",owner,"");
14 // owner=llGetOwner();
15 }
16
17 attach(key on)
18 {
19 if(on != NULL_KEY)
20 {
21 moving = TRUE;
22 passer=on;
25 {
27 }
28 else
29 {
31 }
32 }
33 else
34 {
35 moving = FALSE;
36 }
37 }
38
39 listen(integer channel, string name, key id, string message)
40 {
41 //if(id==owner)
42 //{
43 if(message=="Stop")
44 {
46 llWhisper(0,"What, you don't like the SPEED?");
47 }
48 if(message=="Fly")
49 {
50 llWhisper(0,"WOOWHOOO!");
51 speed=10000;
52 key on=passer;
53 if(on != NULL_KEY)
54 {
55 moving = TRUE;
58 {
60 }
61 else
62 {
64 }
65 }
66 }
67 if(message=="Walk!")
68 {
69 speed=1;
70 llWhisper(0, "A casual walk?");
71 }
72 if(message=="Trot!")
73 {
74 speed=100;
75 llWhisper(0, "Moving to a brisk pace??");
76 }
77 if(message=="Sprint!")
78 {
79 speed=10000;
80 llWhisper(0, "oooo, a run!");
81 }
82 if(message=="Plaid!")
83 {
84 speed=75000;
85 llWhisper(0, "Ludicris Speed.");
86 }
87
88 //}
89 }
90
91
93 {
94 if(perm)
95 {
97 }
98 }
99
100 control(key owner, integer level, integer edge)
101 {
102 // Look for the jump key going down for the first time.
103 if(!(level & CONTROL_FWD))
104 {
105 llSetForce(<0,0,0>, FALSE);
106 }
107 else
108 {
109 vector fwd;
110 fwd = llRot2Fwd(llGetRot());
111 fwd = llVecNorm(fwd);
112 fwd *= speed;
113 llSetForce(fwd, FALSE);
114 }
115 }
116
117 }
118 // END //

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