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 Bullet_with_5_damage  

Bullet_with_5_damage

BulletBasic

Category: Weapons
By : Encog Dod
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

the Zip file

Download all files for Bullet_with_5_damage
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Bullet_with_5_damage_1.lsl
1 // From the book:
2 //
3 // Scripting Recipes for Second Life
4 // by Jeff Heaton (Encog Dod in SL)
5 // ISBN: 160439000
6 X// Copyright 2007 by Heaton Research, Inc.
7 //
8 // This script may be freely copied and modified so long as this header
9 // remains unmodified.
10 //
11 // For more information about this book visit the following web site:
12 //
13 // http://www.heatonresearch.com/articles/series/22/
14
15 //
16 // Damage Bullet (50%)
17 //
18
19 default
20 {
22 {
25 llSetDamage(50);
26 }
27
29 {
30 llSetBuoyancy(1.0); // Make bullet float and not fall
31 llCollisionSound("", 1.0); // Disable collision sounds
32 }
33
34 collision_start(integer total_number)
35 {
36 llDie();
37 }
38
39 land_collision_start(vector pos)
40 {
41 llDie();
42 }
43
44 timer()
45 {
46 llDie();
47 }
48 }

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