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 Flower_rezzer_1  

Flower_rezzer_1

Flower rezzer 1.lsl

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

the Zip file

Download all files for Flower_rezzer_1
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Flower_rezzer_1_1.lsl
1
2
3 float MAX_RADIUS = 2.5;
4 float RADIUS_INTERVAL = 0.5;
5
6 // Modified values
7 integer IS_ON = FALSE;
8 float RADIUS = 2;
9 string TEXTURE = "f42bcc2b-20c8-9df7-cf1c-69566e377fd8";
10
11 garden() {
16
17 // Texture / Size / Alpha / Color
18 PSYS_SRC_TEXTURE, "ground_vegetation_004" ,
19 PSYS_PART_START_SCALE,<0.2000, 0.2000, 0.0000>,
20 PSYS_PART_END_SCALE,<0.5000, 0.5000, 0.0000>,
21 PSYS_PART_START_ALPHA,0.000000,
22 PSYS_PART_END_ALPHA,1.000000,
23 PSYS_PART_START_COLOR, <1.0,1.0,1.0>,
24 PSYS_PART_END_COLOR, <1.0,1.0,1.0>,
25
26 // Flow
27 PSYS_PART_MAX_AGE,1000.0000,
28 PSYS_SRC_BURST_RATE,1.000000,
30 PSYS_SRC_MAX_AGE,0.000000,
31
32 // Rez position
34 PSYS_SRC_INNERANGLE,1.550000,
35 PSYS_SRC_OUTERANGLE,1.550000,
36 PSYS_SRC_OMEGA,<0.00000, 0.00000, 4>,
39 ]);
40 }
41
42 stop() {
44 }
45
46 default {
47 state_entry() {
48 if(IS_ON) {
49 llSetTimerEvent(RADIUS_INTERVAL);
50 garden();
51 } else {
52 stop();
53 }
54 }
55
56 touch_start(integer num_detected) {
57 if(IS_ON) {
58 llSetTimerEvent(0.0);
59 stop();
60 llWhisper(0, "Garden has stopped");
61 } else {
62 llSetTimerEvent(RADIUS_INTERVAL);
63 garden();
64 llWhisper(0, "Garden has started");
65 }
66 IS_ON = !IS_ON;
67 }
68
69 timer() {
71 if(max_inventory > 0) {
72 TEXTURE = llGetInventoryName(INVENTORY_TEXTURE, (integer)llFrand(max_inventory));
73 }
74 RADIUS = llFrand(MAX_RADIUS);
75 garden();
76 }
77 }

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