My LSL particles will not disappear, although I deleted the script. How can I disable them?

If you have a script that creates a particle system and then removes the script from the primitive, the particles do not seem to go away. How can I get rid of them?

+3
source share
2 answers

This is because particles are considered a property of the primitive, like its textures. Therefore, you should add a script to the primitive that will clear the particle settings:

default
{
    state_entry()
    {
        llParticleSystem([]);
    }
}
+7
source

Spork's evil answer is fine. I just recommend removing the script when done. Since, according to him, particles are a property of prim and you need a script to change the parameters of the particles.

This is why I prefer to use:

default
{
    state_entry()
    {
        llParticleSystem([]); // or llLinkParticleSystem(LINK_SET, []); for whole object
        llRemoveInventory(llGetScriptName()); // remove the script, we don't need it anymore
    }
}
0

Source: https://habr.com/ru/post/1711034/


All Articles