Jump to content

Texture Change with Timer that STOPS after final texture


Cilene Inglewood
 Share

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

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

Recommended Posts

I want to create something where - when I touch it - it begins to cycle through a short series of textures (let's say 2 or 3 textures) over a longer period of time (perhaps 4 hours). But, I would want the cycle to stop after the last texture has been displayed...and not start again until I (or someone else) touches it.

 

I've found a texture changing script with a timer but I'm not sure how to make the time STOP again until I touch it.

 

Thank you :)

Link to comment
Share on other sites

That all depends on how your script is writtien.  Basically, though, every time that the timer fires, it advances the texture by adding +1 to a counter.  It's either reading the texture UUIDs from a list or it is picking up the textures one at a time from the object's inventory.  Either way, all you need to do is ask it when that counter has reached the end of the list.  Then llSetTimerEvent(0.0) to turn off the timer and don't forget to reset the counter to zero.  If the script is well behaved, it should start at the beginning again net time you click it.

Link to comment
Share on other sites

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...