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 L92fireworksball  

L92fireworksball

L9.02-fireworks-ball.lsl

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

the Zip file

Download all files for L92fireworksball
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. L92fireworksball_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 // Listing 9.2: Fireworks - A Big Ball of Small, Slow-Moving Particles
17
18 fireworks()
19 {
24
25 //Appearance
26 PSYS_PART_START_SCALE, <0.25, 0.25, 0.0>, // <1,1,0>
27 PSYS_PART_END_SCALE, < 1.0, 1.0, 0.0 >,
28 PSYS_PART_START_COLOR, <0.0, 0.8, 0.0>, // <1,1,1>
29 PSYS_PART_END_COLOR, <1.0, 0.0, 0.0>, // <1,1,1>
33
34 //Flow
36 PSYS_PART_MAX_AGE, 5.0, // 10.00,
37 PSYS_SRC_BURST_RATE, 1.0, // 0.10,
38 PSYS_SRC_BURST_PART_COUNT, 4000, // 1,
39
40 //Placement
41 PSYS_SRC_PATTERN, PSYS_SRC_PATTERN_ANGLE_CONE, // DROP,
42 PSYS_SRC_BURST_RADIUS, 5.0, // 0.00,
44 PSYS_SRC_ANGLE_END, PI, // 0.00,
45 PSYS_SRC_OMEGA, < 0.00, 0.00, 0.00 >,
46
47 //Movement
48 PSYS_SRC_BURST_SPEED_MIN, 1.75, // 1.00,
49 PSYS_SRC_BURST_SPEED_MAX, 2.0, // 1.00,
50 PSYS_SRC_ACCEL, < 0.00, 0.00, -0.25 >, // <0,0,0>
51 PSYS_SRC_TARGET_KEY, llGetKey() // come back to itself
52 ]);
53 llSleep(0.2);
54 }
55
56 init(integer delay)
57 {
60 llSetStatus(STATUS_PHANTOM, TRUE );
62 float d = (float)( (float)delay / 10.0 );
63 llSetTimerEvent( d );
64 }
65 default {
66 state_entry() {
67 init(15);
68 }
69 on_rez(integer t) {
70 init(t);
71 }
72 timer() {
73 fireworks();
75 if(llGetStartParameter() > 0) {
76 llDie();
77 } else {
79 }
80 }
81 }
82 // END //

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