zzzz

Join us in Phaze Demesnes or follow us:

Home   Show All
Category: Contributor: Creator
Weapons Timed_Mine  

Timed_Mine

Timed_Mine

Category: Weapons
By : Davy Maltz
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life + OpenSim

the Zip file

Download all files for Timed_Mine
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Timed_Mine_1.lsl
1 list sounds = ["888d5e97-7ca3-618a-9061-3afb85ea2e97","9dfb4ca9-52a7-e6b4-70b0-bc1d416eef74","b64b4bc4-0c66-bcb1-fbfb-d58ac09a09d3"];
2 integer collided;
3 p()
4 {
7 PSYS_PART_START_COLOR, <1.0, 1.0, 1.0>,
8 PSYS_PART_END_COLOR, <1.0, 1.0, 1.0>,
9 PSYS_PART_START_SCALE,<10.0, 10.0, 10.0>,
10 PSYS_PART_END_SCALE,<9.0, 9.0, 9.0>,
22 PSYS_SRC_TEXTURE, "e958dfac-b000-1ebb-5724-4d889b780dbb",
25 }
26 triggerSounds()
27 {
29 for(i=0;i<6;i++)
30 {
31 llTriggerSound("519bbe3a-b085-e7e1-8bdb-ca3d74171f72",1.0);
32 llSleep(1.0);
33 }
35 if(sound == 0)
36 sound = 1;
37 for(i=0;i<5;i++)
38 llTriggerSound(llList2String(sounds,sound),1.0);
39 }
40 default
41 {
42 on_rez(integer start_param)
43 {
45 }
47 {
49 }
50 collision_start(integer num_detected)
51 {
52 if(collided == 0)
53 {
54 collided = 1;
55 triggerSounds();
56 p();
57 llSleep(1.7);
58 llDie();
59 }
60 }
62 {
63 if(collided == 0)
64 {
65 collided = 1;
66 triggerSounds();
67 p();
68 llSleep(1.7);
69 llDie();
70 }
71 }
72 }