If you have a script that creates a particle system and then delete the script from the prim, the particles don't seem to go away. How can I get rid of them?
Asked
Active
Viewed 469 times
2 Answers
7
This is because particles are considered a property of a prim, much like its textures. Therefore, you must add a script to the prim that clears its particle settings:
default
{
state_entry()
{
llParticleSystem([]);
}
}

ATL
- 444
- 6
- 10

Evil Spork
- 1,013
- 2
- 10
- 16
0
Evil Spork's answer is fine. I'd just recommend removing the script when you're done. Because as he said particles are a prim property and you only need the script to change the particle settings.
This is why I'd rather use:
default
{
state_entry()
{
llParticleSystem([]); // or llLinkParticleSystem(LINK_SET, []); for whole object
llRemoveInventory(llGetScriptName()); // remove the script, we don't need it anymore
}
}

random
- 1