Difference between revisions of "Play and Loop Sound"

From Second Life Wiki
Jump to navigation Jump to search
(New page: == What does this mean? == This is a very short and simple script. Just put it in an object along with a sound and it will loop the sound over and over again. == Let's see the script the...)
 
m (<lsl> tag to <source>)
 
Line 7: Line 7:
Okay, here we go :D.
Okay, here we go :D.


<lsl>//Bella all the way xD
<source lang="lsl2">//Bella all the way xD
//
//


Line 16: Line 16:
         llLoopSound(llGetInventoryName(INVENTORY_SOUND,0), 1.0);
         llLoopSound(llGetInventoryName(INVENTORY_SOUND,0), 1.0);
     }
     }
}</lsl>
}</source>

Latest revision as of 08:32, 25 January 2015

What does this mean?

This is a very short and simple script. Just put it in an object along with a sound and it will loop the sound over and over again.

Let's see the script then!

Okay, here we go :D.

//Bella all the way xD
//

default
{
    state_entry()
    {
        llLoopSound(llGetInventoryName(INVENTORY_SOUND,0), 1.0);
    }
}