Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Particles

Bobby Dayton
Test Pilot for Airfix
Join date: 15 Nov 2003
Posts: 206
12-11-2005 23:40
I have an object that had a sparkle script put in it. The script has been removed but it still sparkles. I know the reason is because the object takes up the properties set by the script.
Has anyone got a simple "set to normal" script. Or do I need to rebuild the object.
Torley Linden
Enlightenment!
Join date: 15 Sep 2004
Posts: 16,530
12-11-2005 23:41
I do. I'll send to you inworld. This stops particles and related clientside fx.
_____________________
Torley Linden
Enlightenment!
Join date: 15 Sep 2004
Posts: 16,530
12-11-2005 23:43
I smacked this together 'cuz I couldn't find a tidy one elsewhere... it stops a variety of clientside fx as I described... if anyone wants to extend it or if I left out any clientside schtuff, feel free to add on. Just paste this into a script inworld and drop it into a particle-spewing cone, a spinning cube, knock the floating text off of a sign, whateva.

CODE
default
{
state_entry()
{
llParticleSystem([]);
llSetText("", <1,1,1>, 1.0);
llSetTextureAnim(FALSE | SMOOTH | LOOP, ALL_SIDES, 1, 1, 0, 0, 0.0);
llTargetOmega(<0,0,0>, 0, 0);
}
}
_____________________
Bobby Dayton
Test Pilot for Airfix
Join date: 15 Nov 2003
Posts: 206
12-12-2005 00:18
Thats brilliant Torley, thanks. The line

llParticleSystem([]);

will probably do it. I was expecting a long line of default parameters to do it.