Everytime I go to the spot with the particle script it's doing it's particle thing. I wrote the script to activate on touch, which it also does, but not everytime I go the that spot. What can I do to stop that?
MakeParticles() {
particle stuff
}
integer OFF = FALSE;
default
{
on_rez( integer reznum)
{
llResetScript();
}
touch_start(integer num)
{
if(llDetectedKey(0) == llGetOwner()) /
{
if(OFF)
{
MakeParticles();
OFF = FALSE;
llSetPrimitiveParams([ PRIM_COLOR, ALL_SIDES, <1, 1, 0>,1.0, PRIM_FULLBRIGHT, ALL_SIDES, TRUE]);
llSleep(3);
llSetPrimitiveParams([ PRIM_COLOR, ALL_SIDES, <1, 1, .6>,1.0, PRIM_FULLBRIGHT, ALL_SIDES, FALSE]);
}
else
{
llParticleSystem([]);
OFF = TRUE;
}
}
}
}
