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
Fireworks L91fireworksred  

L91fireworksred

L9.01-fireworks-red.lsl

Category: Fireworks
By : Dana Moore
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

the Zip file

Download all files for L91fireworksred
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. L91fireworksred_1.lsl
1
2 // Copyright (c) 2008, Scripting Your World
3 // All rights reserved.
4 //
5 // Scripting Your World
6 // By Dana Moore, Michael Thome, and Dr. Karen Zita Haigh
7 // http://syw.fabulo.us
8 // http://www.amazon.com/Scripting-Your-World-Official-Second/dp/0470339837/
9 //
10 // You are permitted to use, share, and adapt this code under the
11 // terms of the Creative Commons Public License described in full
12 // at http://creativecommons.org/licenses/by/3.0/legalcode.
13 // That means you must keep the credits, do nothing to damage our
14 // reputation, and do not suggest that we endorse you or your work.
15
16 // red lines
17
18 fireworks()
19 {
24 //Appearance
25 PSYS_PART_START_SCALE, < 0.1, 1.0, 0.0 >, // <1,1,1>
26 PSYS_PART_END_SCALE, < 1.0, 1.0, 0.0 >,
27 PSYS_PART_START_COLOR, < 1.0, 0.0, 0.0 >, // <1,1,1>
28 PSYS_PART_END_COLOR, < 0.0, 0.0, 1.0 >, // <1,1,1>
30 PSYS_PART_END_ALPHA, 0.25, // 1.0
32
33 //Flow
35 PSYS_PART_MAX_AGE, 3.00, // 10.0
36 PSYS_SRC_BURST_RATE, 0.50, // 0.1
38
39 //Placement
40 PSYS_SRC_PATTERN, PSYS_SRC_PATTERN_EXPLODE, // DROP
44 PSYS_SRC_OMEGA, < 0.00, 0.00, 0.00 >,
45
46 //Movement
47 PSYS_SRC_BURST_SPEED_MIN, 5.00, // 1.0
48 PSYS_SRC_BURST_SPEED_MAX, 10.00, // 1.0
49 PSYS_SRC_ACCEL, < 0.0, 0.0, -1.0 >, // 0,0,0
50 PSYS_SRC_TARGET_KEY, llGetKey() // come back to itself
51 ]);
52 llSleep(0.3);
53 }
54
55 init(integer delay)
56 {
58 llSetStatus(STATUS_PHANTOM, TRUE );
59 float d = (float)( (float)delay / 10.0 );
60 llSetTimerEvent( d );
61 }
62 default {
63 state_entry() {
64 init(15);
65 }
66 on_rez(integer t) {
67 init(t);
68 }
69 timer() {
70 fireworks();
72 llSleep(0.5);
73 if(llGetStartParameter() > 0) {
74 llDie();
75 } else {
77 }
78 }
79 }
80 // END //

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