Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Particles not deleting

Blargen Goff
Registered User
Join date: 17 Jan 2006
Posts: 6
02-10-2006 14:35
Ok, maybe this should be in scripting tips or something, but it sure seems like a bug to me. I've recently been messing with some smoke scripts to make a stack on one of my attachment, and having deleted the script I still can't get rid of the smoke particles. It's annoying as hell, because I can't find any sources but the particles are still there. I've tried turning on particle beacons, and there aren't any on my attachments. Tried recompiling, resetting and Not Running scripts on everything, but theres still this stupid trail following me around. Please help?
Torley Linden
Enlightenment!
Join date: 15 Sep 2004
Posts: 16,530
02-10-2006 14:38
Blargen, particles are saved in the state of the prim... so there are a couple of things you can do. If you know how to shift-drag to copy a prim, do it with this. In Edit, hold down SHIFT and then click-and-drag on one of the arrow heads. The copy won't have the particles. I'll also send you a simple script to disable particles and other client-side effects that are similarly tricky to get rid of. :)
_____________________
Blargen Goff
Registered User
Join date: 17 Jan 2006
Posts: 6
02-10-2006 14:48
Thankyou very much. Wish I'd known this before :/
Torley Linden
Enlightenment!
Join date: 15 Sep 2004
Posts: 16,530
02-10-2006 14:50
Welkies! And hey, no worries Blargen--that confused me a lot. There's not a more explanatory way at present, and I'm glad you asked. Will send you the script shortly... just drop it into any prim to stop the particles.
_____________________
Torley Linden
Enlightenment!
Join date: 15 Sep 2004
Posts: 16,530
02-10-2006 14:54
Stop Clientside Effects (just drop this in a prim)

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);
}
}
_____________________
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
02-10-2006 15:30
Torley: don't forget this one, for when a dance ball Just Won't let You Go...
CODE

integer i;
list l = llGetAnimationList(llGetOwner());
integer n = llGetListlength(l);

for(i = 0; i < n; i++) llStopAnimation(llList2String(l, i));
Torley Linden
Enlightenment!
Join date: 15 Sep 2004
Posts: 16,530
02-10-2006 15:31
That's nifty! Thanx!
_____________________
Elvawin Rainbow
Registered User
Join date: 30 Aug 2005
Posts: 172
02-10-2006 17:29
from:
http://secondlife.com/badgeo/wakka.php?wakka=llParticleSystem

Q: How do I get my object to stop emitting particles? I removed the script, but it won't stop.
A: Call llParticleSystem again with an empty list. Particles aren't actually generated by the script; rather, the script only toggles a setting on the prim. This behavior is similar to llSetScale or llSetText -- the scale or text are a part of the object, and will only be changed when a new setting is fed to them. Particles work the same way.
_____________________
"Off with their Heads"
Jopsy Pendragon
Perpetual Outsider
Join date: 15 Jan 2004
Posts: 1,906
ScrubPrim.lsl
02-10-2006 18:35
I know I'm forgetting something else that lurks inside a prim but can't think of it...

CODE

default
{
state_entry()
{
llSetSitText( "" );
llSetTouchText( "" );
llParticleSystem( [ ] );
llSetText( "", ZERO_VECTOR, 1.0 );
llTargetOmega( ZERO_VECTOR, 0, 0 );
llSetCameraAtOffset( ZERO_VECTOR );
llSetCameraEyeOffset( ZERO_VECTOR );
llSitTarget( ZERO_VECTOR, ZERO_ROTATION );
llSetTextureAnim( FALSE , ALL_SIDES, 1, 1, 0, 0, 0.0 );
llOwnerSay("This Prim is Clean... ");
llRemoveInventory( llGetScriptName() );
// vanish without a trace...
}
}
_____________________
* The Particle Laboratory * - One of SecondLife's Oldest Learning Resources.
Free particle, control and targetting scripts. Numerous in-depth visual demonstrations, and multiple sandbox areas.
-
Stop by and try out Jopsy's new "Porgan 1800" an advanced steampunk styled 'particle organ' and the new particle texture store!
Torley Linden
Enlightenment!
Join date: 15 Sep 2004
Posts: 16,530
02-10-2006 18:37
Thanx for the completion Jopsy!

Ideally, if these could all be put inside...
_____________________
Torley Linden
Enlightenment!
Join date: 15 Sep 2004
Posts: 16,530
02-10-2006 18:39
BTW--Jopsy, that a Poltergeist reference?
_____________________
Jopsy Pendragon
Perpetual Outsider
Join date: 15 Jan 2004
Posts: 1,906
02-10-2006 18:41
They're heeeeeerrreee!

Two points to Torley! =)
_____________________
* The Particle Laboratory * - One of SecondLife's Oldest Learning Resources.
Free particle, control and targetting scripts. Numerous in-depth visual demonstrations, and multiple sandbox areas.
-
Stop by and try out Jopsy's new "Porgan 1800" an advanced steampunk styled 'particle organ' and the new particle texture store!