removed useless _ folders
This commit is contained in:
3
Sound_Prim_Script__Loop/Sound_Prim_Script__Loop.sol
Normal file
3
Sound_Prim_Script__Loop/Sound_Prim_Script__Loop.sol
Normal file
@@ -0,0 +1,3 @@
|
||||
<Solution name="Sound_Prim_Script__Loop">
|
||||
<Project name="Sound_Prim_Script__Loop" path="Sound_Prim_Script__Loop\Sound_Prim_Script__Loop.prj" active="true"/>
|
||||
</Solution>
|
||||
@@ -0,0 +1,59 @@
|
||||
// :CATEGORY:Sound
|
||||
// :NAME:Sound_Prim_Script__Loop
|
||||
// :AUTHOR:Anonymous
|
||||
// :CREATED:2010-01-10 05:20:56.000
|
||||
// :EDITED:2013-09-18 15:39:04
|
||||
// :ID:813
|
||||
// :NUM:1123
|
||||
// :REV:1.0
|
||||
// :WORLD:Second Life
|
||||
// :DESCRIPTION:
|
||||
// Sound Prim Script - Loop.lsl
|
||||
// :CODE:
|
||||
|
||||
|
||||
// Sound Prim Script - Loop
|
||||
//
|
||||
// Repeatly plays the sound in inventory if there is
|
||||
// ONE and ONLY ONE sound. Silent otherwise.
|
||||
//
|
||||
// Set this between 0.0 and 1.0
|
||||
float LOUDNESS = 0.5;
|
||||
//
|
||||
////////////////////////////////////////////////
|
||||
Noisy()
|
||||
{
|
||||
if ( llGetInventoryNumber(INVENTORY_SOUND) == 1 )
|
||||
{
|
||||
string soundname = llGetInventoryName(INVENTORY_SOUND, 0);
|
||||
if ( soundname != "" )
|
||||
{
|
||||
llLoopSound( soundname, LOUDNESS );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
llStopSound();
|
||||
}
|
||||
}
|
||||
////////////////////////////////////////////////
|
||||
default
|
||||
{
|
||||
|
||||
state_entry()
|
||||
{
|
||||
llStopSound();
|
||||
Noisy();
|
||||
}
|
||||
|
||||
changed(integer change)
|
||||
{
|
||||
if (change & CHANGED_INVENTORY)
|
||||
{
|
||||
llStopSound();
|
||||
Noisy();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
// END //
|
||||
@@ -0,0 +1,6 @@
|
||||
<Project name="Sound_Prim_Script__Loop" guid="D7B0F692-6C00-1014-B904-200204C60A89">
|
||||
<Object name="Object" guid="D7B0F780-6C00-1014-B904-200204C60A89">
|
||||
<Script name="Sound_Prim_Script__Loop_1.lsl" guid="D7B10F53-6C00-1014-B904-200204C60A89">
|
||||
</Script>
|
||||
</Object>
|
||||
</Project>
|
||||
Reference in New Issue
Block a user