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
Animation Double_Jumper  

Double_Jumper

Double_Jumper

Category: Animation
By : Davy Maltz
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

the Zip file

Download all files for Double_Jumper
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Double_Jumper_1.lsl
1 integer jumped;
2 integer pre;
3 default
4 {
5 on_rez(integer start_param)
6 {
8 }
10 {
12
13 }
15 {
16 if(perm)
17 {
19 }
20 }
21 collision_start(integer num_detected)
22 {
23 jumped = 0;
24 }
25 land_collision_start(vector pos)
26 {
27 jumped = 0;
28 }
29 control(key id, integer level, integer edge)
30 {
31 if(level & edge & CONTROL_UP)
32 {
33 if(llGetAgentInfo(llGetOwner()) != AGENT_IN_AIR && jumped == 0 && pre == 0)
34 {
35 pre = 1;
36 llStartAnimation("prejump");
37 llSleep(1.0);
38 }
39 else if(llGetAgentInfo(llGetOwner()) & AGENT_IN_AIR && jumped == 0 && pre == 1 && llGetAgentInfo(llGetOwner()) != AGENT_FLYING)
40 {
41 pre = 0;
44 PSYS_PART_START_COLOR, <1,1,1>,
45 PSYS_PART_END_COLOR, <1,1,1>,
46 PSYS_PART_START_SCALE,<2.0,2.0,2.0>,
47 PSYS_PART_END_SCALE,<2.0,2.0,2.0>,
50 PSYS_SRC_ACCEL, <0,0,0>,
58 PSYS_SRC_OMEGA, <0.2,0.2,0.2>,
60 PSYS_SRC_TEXTURE, "cf26f908-cf57-086d-b629-ee73937b4c7f",
63 ]);
64 llStartAnimation("advanced jump");
65 jumped = 1;
66 llApplyImpulse(<0,0,15>,FALSE);
67 }
68 }
69 }
70 }

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