Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

partical effect toggle script

Nekose Mackenzie
Junior Member
Join date: 23 Jul 2004
Posts: 4
08-02-2004 02:09
anyone have a chuck of script i can insert into my current partical scripts to turn it on and off? I've been trying to find one out myself, but its managed to surpass my limited scripting skills.
Al Bravo
Retired
Join date: 29 Jun 2004
Posts: 373
08-02-2004 04:36
CODE

integer toggle = FALSE;

default
{
state_entry()
{
}

touch_start(integer n)
{
toggle = !toggle;
if (toggle)
// put particle function here
else
llParticleSystem([]);
}
}