Join us in Phaze Demesnes

LSL Script Library Home   Add a script Show All
Category: Contributor: Description
Flight Assist Anonymous Final Flight 2.lsl
Final Flight 2.lsl
Final Flight 2.lsl

Download this script - Please use this link to get this script. If you see all the code on one long line, please use Wordpad or another editor, such as LSLEdit.exe. The .LSL file you will download is an ordinary text file.

1 // CATEGORY:Flight Assist
2 // DESCRIPTION:Final Flight 2.lsl
3 // ARCHIVED BY:Ferd Frederix
4
5 float speed=10000;
6
7 default
8 {
10 {
11 if (on != NULL_KEY)
12 {
13 llListen(0,"",llGetOwner(),"");
15 if (perm != (PERMISSION_TAKE_CONTROLS))
16 {
18 }
19 else
20 {
22 }
23 }
24 }
25
27 {
28 list test = llCSV2List(m);
29 if(llGetListLength(test)==2&&llList2String(test,0)=="speed")
30 speed=llList2Float(test,1);
31 }
32
34 {
35 if (perm)
36 {
38 }
39 }
40
41 control(key owner, integer level, integer edge)
42 {
43 if (!(level & CONTROL_FWD) || !(llGetAgentInfo(llGetOwner())&AGENT_FLYING))
44 {
45 llSetForce(<0,0,0>, FALSE);
46 }
47 else
48 {
50 fwd = llVecNorm(fwd);
51 fwd *= speed;
52 llSetForce(fwd, FALSE);
53 }
54 }
55
56 }// END //