tip: sound loop on/off
on Sunday, April 22nd, 2007 at 5:42 amThis one via Adenoraque Qin. Say you have a 15 second sound loop, and you want the user to be able to toggle sound on and off. If you just use llStopSound(), the loop will keep playing, till it finishes.
Example: Clip is 5 seconds in when user pushes stop button - sound will still play the full 15 second clip. Instead, when the user hits the stop button, call the same sound with volume of 0: llPlaySound(”foo”, 0); then llStopSound();
my del.icio.us