Loop Sound

Date 2006/10/14 1:34:07 | Topic: Sound

Place a sound and this script in an object and it will play the sound looped.

The number "0.90" in the script is the volume and can be changed to any number between 0 and 1. "1" is full volume.

default
{
    
state_entry()
    {
        
llStopSound();
        
llSleep(.2);
        
llLoopSound(llGetInventoryName(INVENTORY_SOUND0), 0.90);
    }
}




This script comes from Alicia Stella Design - Best Tip Jars in Second Life
http://www.aliciastella.com

The URL for this script is:
http://www.aliciastella.com/modules/AMS/article.php?storyid=5