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
Particles SnowGlobe_Script_2  

SnowGlobe_Script_2

SnowGlobe Script 2.lsl

Category: Particles
By : Jposy Pendragon
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

the Zip file

Download all files for SnowGlobe_Script_2
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. SnowGlobe_Script_2_1.lsl
1 // snow globe
2
3 key mykey;
4 list twinkeys;
5 list twinpos;
6 integer numtwins;
7 vector mypos;
8
9 default
10 {
11 state_entry() {
12 llSetTimerEvent(5.0);
13 }
14
15 timer() {
16 key target=llGetKey();
17 vector mypos = llGetPos();
18
19 float pink=llFrand(1.0);
20 vector up = <0,0,(1 - llFrand(2)) >;
21 llLookAt( (vector)(mypos + up), 1.0, .1);
24 // _PATTERN can be: *_EXPLODE, *_DROP, *_ANGLE, *ANGLE_CONE or *_ANGLE_CONE_EMPTY
25 PSYS_SRC_BURST_PART_COUNT,(integer) 5, // defined above
26 PSYS_SRC_BURST_RATE,(float) .01, // defined above
27 PSYS_PART_MAX_AGE,(float) 2.5, // defined above
28 PSYS_SRC_BURST_RADIUS,(float) .1, // How far from emitter new particles start,
29 PSYS_SRC_INNERANGLE,(float) PI/2, // aka 'spread' (0 to 2*PI),
30 PSYS_SRC_OUTERANGLE,(float) 0.0, // aka 'tilt' (0 to 2*PI),
31 //PSYS_SRC_OMEGA,(vector)(offset*0.1),
32 PSYS_SRC_ACCEL,(vector) (-up*.3),
35 PSYS_PART_START_SCALE,(vector) <.05,.05,0.0>,// Start Size, (minimum .04, max 10.0?)
36 PSYS_PART_END_SCALE,(vector) <.05,.05,0>, // End Size, requires *_INTERP_SCALE_MASK
39 PSYS_PART_START_ALPHA,(float) 0.5, // startAlpha (0 to 1),
40 PSYS_PART_END_ALPHA,(float) .8, // endAlpha (0 to 1)
41 //PSYS_SRC_TARGET_KEY,(key)target,// ,
42 // for *_TARGET try llGetKey(), or llGetOwner(), or llDetectedKey(0) even. :)
43 PSYS_SRC_TEXTURE,(string) "60ec4bc9-1a36-d9c5-b469-0fe34a8983d4", // name of a 'texture' in emitters inventory
44 //PSYS_SRC_MAX_AGE,(float) 0.0, // turns emitter off. (0.0 = never)
46 PSYS_PART_EMISSIVE_MASK | // particles glow
47 //PSYS_PART_BOUNCE_MASK | // particles bounce up from emitter's 'Z' altitude
48 //PSYS_PART_WIND_MASK | // particles get blown around by wind
49 PSYS_PART_FOLLOW_VELOCITY_MASK | // particles rotate towards where they're going
50 //PSYS_PART_FOLLOW_SRC_MASK | // particles move as the emitter moves
51 PSYS_PART_INTERP_COLOR_MASK | // particles change color depending on *_END_COLOR
52 PSYS_PART_INTERP_SCALE_MASK | // particles change size using *_END_SCALE
54 ] );
55 }
56 }
57 // END //

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