Search code examples
linden-scripting-language

My LSL particles won't go away even though I've deleted the script. How can I turn them off?


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?


Solution

  • 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([]);
        }
    }