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
Weapons arrow_sink  

arrow_sink

won't stick i the ground will fall straight through.

Category: Weapons
By : Martin
Created: 2010-06-23 Edited: 2010-06-23
Worlds: Second Life

the Zip file

Download all files for arrow_sink
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. arrow_sink_1.lsl
1 integer toss = 0;
2
3 default
4 {
6 {
9 }
10
11 collision_start(integer total_number)
12 {
13 if(llDetectedType(0) != AGENT && toss == 0)
14 {
15 toss = 1;
16 vector speed = llGetVel();
17 float dispeed = llVecDist(<0,0,0>,speed);
18 if(dispeed >= 20)
19 {
22 llSetPos(llGetPos() + speed / 85);
23 }
24 }
25 else if(toss == 0)
26 {
27 llDie();
28 }
30 }
31
32 timer()
33 {
34 llDie();
35 }
36 }

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