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 Final_Flight_2  

Final_Flight_2

Final Flight 2.lsl

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

the Zip file

Download all files for Final_Flight_2
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Final_Flight_2_1.lsl
1
2 float speed=10000;
3
4 default
5 {
6 attach(key on)
7 {
8 if(on != NULL_KEY)
9 {
10 llListen(0,"",llGetOwner(),"");
13 {
15 }
16 else
17 {
19 }
20 }
21 }
22
23 listen(integer channel, string name, key id, string m)
24 {
25 list test = llCSV2List(m);
26 if(llGetListLength(test)==2&&llList2String(test,0)=="speed")
27 speed=llList2Float(test,1);
28 }
29
31 {
32 if(perm)
33 {
35 }
36 }
37
38 control(key owner, integer level, integer edge)
39 {
40 if(!(level & CONTROL_FWD) || !(llGetAgentInfo(llGetOwner())&AGENT_FLYING))
41 {
42 llSetForce(<0,0,0>, FALSE);
43 }
44 else
45 {
47 fwd = llVecNorm(fwd);
48 fwd *= speed;
49 llSetForce(fwd, FALSE);
50 }
51 }
52
53 }// END //

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