Particles
From OpenSimulator
(Difference between revisions)
(New page: == Particles == <source lang="lsl"> // *** Fountian Particles *** // *** by Samantha Fuller *** // *** ver 1 for OLG alpha .5 - March 5 /08 *** integer on; start_particles() { llPar...) |
|||
Line 67: | Line 67: | ||
} | } | ||
</source> | </source> | ||
+ | |||
+ | |||
+ | [[Category:Scripts]] |
Revision as of 10:47, 23 November 2010
Particles
// *** Fountian Particles *** // *** by Samantha Fuller *** // *** ver 1 for OLG alpha .5 - March 5 /08 *** integer on; start_particles() { llParticleSystem([ PSYS_PART_FLAGS, PSYS_PART_EMISSIVE_MASK //PSYS_PART_TARGET_POS_MASK | PSYS_PART_INTERP_COLOR_MASK | PSYS_PART_INTERP_SCALE_MASK, //|PSYS_PART_WIND_MASK, //PSYS_PART_FOLLOW_VELOCITY_MASK, PSYS_SRC_PATTERN, // *** Choose 1 pattern from the following *** // PSYS_SRC_PATTERN_EXPLODE, PSYS_SRC_PATTERN_DROP, // PSYS_SRC_PATTERN_ANGLE_CONE_EMPTY, // PSYS_SRC_PATTERN_ANGLE_CONE, // PSYS_SRC_PATTERN_ANGLE, PSYS_SRC_ANGLE_BEGIN, 5.015, PSYS_SRC_ANGLE_END, 10.5, PSYS_PART_START_SCALE, <0.1, 0.3, 0.1>, PSYS_PART_END_SCALE, <5.05,5.05,5.05>, PSYS_PART_START_ALPHA, .9, PSYS_PART_END_ALPHA, 0.05, PSYS_PART_START_COLOR, <1.0, 1.0, 1.0>, PSYS_PART_END_COLOR, <1.0, 0.0, 1.0>, PSYS_PART_MAX_AGE, 5.5, PSYS_SRC_ACCEL, < 0.0, 0.0, 0.2>, PSYS_SRC_BURST_RATE, 0.500, PSYS_SRC_BURST_PART_COUNT, 10, PSYS_SRC_BURST_RADIUS, 1.075, PSYS_SRC_BURST_SPEED_MAX, 2, PSYS_SRC_BURST_SPEED_MIN, 1, PSYS_SRC_TARGET_KEY, llGetKey() ]); } default { state_entry() { start_particles(); llSleep(6); //llParticleSystem([]); llWhisper(0,"particle change"); } touch_start(integer touches) { if (on == 0) { on = 1; start_particles(); llWhisper(0,"fountian on"); } else { on = 0; llParticleSystem([]); llWhisper(0,"fountian off"); } } }