I was able to get this working for one emitter, but then realized I had to control three different particle emitters to start and stop on a touch. I had thought it would be as easy as just linking the different emitters together...when that didn't work I went to the LSL wiki. This confused me even more. I am not a coder at heart, so I am doing the best I can. I know I need to use something like the llMessageLinked command, but even after looking at the syntax, I have no clue how to work it or add it it. Any help would be appreciated! Here is the code I have so far:
ParticleStart()
{
llParticleSystem([
PSYS_PART_FLAGS, 291,
PSYS_SRC_PATTERN, 2,
PSYS_PART_START_ALPHA, 1.00,
PSYS_PART_END_ALPHA, 0.00,
PSYS_PART_START_COLOR, <1.00,1.00,1.00>,
PSYS_PART_END_COLOR, <1.00,1.00,0.00>,
PSYS_PART_START_SCALE, <0.25,0.25,0.00>,
PSYS_PART_END_SCALE, <0.50,0.50,0.00>,
PSYS_PART_MAX_AGE, 0.85,
PSYS_SRC_MAX_AGE, 0.00,
PSYS_SRC_ACCEL, <0.00,0.00,1.25>,
PSYS_SRC_ANGLE_BEGIN, 0.00,
PSYS_SRC_ANGLE_END, 0.70,
PSYS_SRC_BURST_PART_COUNT, 5,
PSYS_SRC_BURST_RADIUS, 0.10,
PSYS_SRC_BURST_RATE, 0.05,
PSYS_SRC_BURST_SPEED_MIN, 0.00,
PSYS_SRC_BURST_SPEED_MAX, 0.40,
PSYS_SRC_OMEGA, <0.00,0.00,0.00>,
PSYS_SRC_TEXTURE, "a96ecd50-96e1-28b4-51ec-96b3112210c0"
]);
}
ParticleStop()
{
llParticleSystem([]);
}
default
{
state_entry()
{
state Off;
}
}
state On
{
state_entry()
{
ParticleStart();
}
touch_start(integer total_number)
{
state Off;
}
}
state Off
{
state_entry()
{
ParticleStop();
}
touch_start(integer total_number)
{
state On;
}
}