Jump to content
  • 0

Removing a Script


Nalytha
 Share

You are about to reply to a thread that has been inactive for 2290 days.

Please take a moment to consider if this thread is worth bumping.

Question

  • 0

Smoke is not an animation.  It's a particle effect.  Particles are like many other features in SL in that they can only be turned on or off by a script, but don't require a script to keep going.  So, removing the script will have no effect at all.  The script started the particle stream but is no longer necessary -- except, of course, if you want to turn the smoke off again. :smileysad:

No fear. There's an easy enough solution.  You just have to add another script to turn the smoke off again.

 

default{    state_entry()    {        llParticleSystem([]);        llRemoveInventory(llGetScriptName());    }}

Just be sure that you drop that script into the same link that you took the old script out of.  It will delete itself instantly, as soon as it turns off the smoke.

 

  • Like 2
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Smoke is not an animation.  It's a particle effect.  Particles are like many other features in SL in that they can only be turned on or off by a script, but don't require a script to keep going.  So, removing the script will have no effect at all.  The script started the particle stream but is no longer necessary -- except, of course, if you want to turn the smoke off again. :smileysad:

No fear. There's an easy enough solution.  You just have to add another script to turn the smoke off again.

 

default{    state_entry()    {        llParticleSystem([]);        llRemoveInventory(llGetScriptName());    }}

Just be sure that you drop that script into the same link that you took the old script out of.  It will delete itself instantly, as soon as it turns off the smoke.

 

  • Like 2
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 2290 days.

Please take a moment to consider if this thread is worth bumping.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...