Join us in Phaze Demesnes or follow us:

Home   Show All
Category: Contributor: Creator
Weapons BulletKill  

BulletKill

BulletKill

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

the Zip file

Download all files for BulletKill
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. BulletKill_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 // Encog's MultiBullet Gun Bullet
17 //
18 // 100% Damage(Kill) Bullet: This bullet will usually kill an avatar with one shot
19 //
20
21
22 default
23 {
24 on_rez(integer delay)
25 {
27 llSetDamage(100);
28 llSetBuoyancy(1.0); // Make bullet float and not fall
29 llCollisionSound("", 1.0); // Disable collision sounds
30
31 if (delay >0 )
32 {
33 llSetTimerEvent(delay);
34 }
35 }
36
37 collision_start(integer total_number)
38 {
39 }
40
42 {
43 }
44
45 timer()
46 {
47 llDie();
48 }
49
50 }