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 Dark_Footiesteps  

Dark_Footiesteps

Dark Footiesteps.lsl

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

the Zip file

Download all files for Dark_Footiesteps
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Dark_Footiesteps_1.lsl
1
2 // To use this script, remove the // from the lines starting with PSYS_
3 // for the options/effects you wish to use.
4
5 default
6 {
8
9 // set your RATE, AGE and COUNT values here, for safety checking
10
11 float rate =0.01 ; // The delay between bursts of particles, in seconds
12 float age =5.0 ; // How long each particle lives, in seconds
13 integer count =1 ; // How many particles get created per burst
14
15 if( rate < .005 ) rate = .005; // prevents divide by 0 errors on next check
16 if( ((age/rate)*count) > 3000 )
17 {
18 llInstantMessage( llGetOwner(), "WARNING: Your (AGE/RATE)*COUNT is very high.");
19 return;
20 }
21
24 // _PATTERN can be: *_EXPLODE, *_DROP, *_ANGLE, *ANGLE_CONE or *_ANGLE_CONE_EMPTY
25 PSYS_SRC_BURST_PART_COUNT,(integer) count, // defined above
26 PSYS_SRC_BURST_RATE,(float) rate, // defined above
27 PSYS_PART_MAX_AGE,(float) age, // defined above
28 //PSYS_SRC_BURST_RADIUS,(float) 0.0, // How far from emitter new particles start,
29 //PSYS_SRC_INNERANGLE,(float) 0.0, // aka 'spread' (0 to 2*PI),
30 //PSYS_SRC_OUTERANGLE,(float) 0.0, // aka 'tilt' (0(up), PI(down) to 2*PI),
31 //PSYS_SRC_OMEGA,(vector) <0,0,0>, // how much to rotate around x,y,z per burst,
32 //PSYS_SRC_ACCEL,(vector) <0,0,1>, // aka gravity or push, ie <0,0,-1.0> = down
33 PSYS_SRC_BURST_SPEED_MIN,(float) 0.1, // Minimum velocity for new particles
34 //PSYS_SRC_BURST_SPEED_MAX,(float) 1.0, // Maximum velocity for new particles
35 PSYS_PART_START_SCALE,(vector) <.63,.85,0>,// Start Size, (minimum .04, max 10.0?)
36 PSYS_PART_END_SCALE,(vector) <.35,.41,0>, // End Size, requires *_INTERP_SCALE_MASK
37 PSYS_PART_START_COLOR,(vector) <0,0,0>, // Start Color, (RGB, 0 to 1)
38 //PSYS_PART_END_COLOR,(vector) <.5,.5,0>, // EndC olor, requires *_INTERP_COLOR_MASK
39 PSYS_PART_START_ALPHA,(float) 1.0, // startAlpha (0 to 1),
40 //PSYS_PART_END_ALPHA,(float) 1.0, // endAlpha (0 to 1)
41 PSYS_SRC_TARGET_KEY,(key) llGetKey(), // key of a target, requires *_TARGET_POS_MASK
42 // for *_TARGET try llGetKey(), or llGetOwner(), or llDetectedKey(0) even. :)
43 //PSYS_SRC_TEXTURE,(string) "", // name of a 'texture' in emitters inventory
44 PSYS_SRC_MAX_AGE,(float) 15.0*60.0, // turns emitter off after 15 minutes. (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
53 PSYS_PART_TARGET_POS_MASK | // particles home on *_TARGET key
54 0
55 ] );
56 }
57
58 touch_start(integer num) {
59 llResetScript(); // touch prim to restart particles after they time out
60 }
61
62
63 }
64 // END //

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