removed useless _ folders
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
<Solution name="Sound_Prim_Script__On_Attach">
|
||||
<Project name="Sound_Prim_Script__On_Attach" path="Sound_Prim_Script__On_Attach\Sound_Prim_Script__On_Attach.prj" active="true"/>
|
||||
</Solution>
|
||||
@@ -0,0 +1,52 @@
|
||||
// :CATEGORY:Sound
|
||||
// :NAME:Sound_Prim_Script__On_Attach
|
||||
// :AUTHOR:Anonymous
|
||||
// :CREATED:2010-01-10 05:20:56.000
|
||||
// :EDITED:2013-09-18 15:39:04
|
||||
// :ID:814
|
||||
// :NUM:1124
|
||||
// :REV:1.0
|
||||
// :WORLD:Second Life
|
||||
// :DESCRIPTION:
|
||||
// Sound Prim Script - On Attach.lsl
|
||||
// :CODE:
|
||||
|
||||
|
||||
// Sound Prim Script - On Attach
|
||||
//
|
||||
// Randomly picks a sound in inventory,
|
||||
// plays it whenever the prim is attached
|
||||
// to an avatar.
|
||||
//
|
||||
// If the attachment is a HUD, only the
|
||||
// wearer will hear it.
|
||||
//
|
||||
// Set this between 0.0 and 1.0
|
||||
float LOUDNESS = 0.5;
|
||||
//
|
||||
////////////////////////////////////////////////
|
||||
default
|
||||
{
|
||||
|
||||
attach(key attached)
|
||||
{
|
||||
if (attached == NULL_KEY) return; // comment this out if you want noise when detached.
|
||||
//if (attached != NULL_KEY) return; // comment this out if you want noise when attached.
|
||||
|
||||
integer sounds = llGetInventoryNumber(INVENTORY_SOUND);
|
||||
|
||||
if ( sounds <= 0 ) return;
|
||||
|
||||
string soundname = llGetInventoryName( INVENTORY_SOUND, llFloor(llFrand(sounds)) );
|
||||
if ( soundname != "" )
|
||||
{
|
||||
llPlaySound( soundname, LOUDNESS );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
// END //
|
||||
@@ -0,0 +1,6 @@
|
||||
<Project name="Sound_Prim_Script__On_Attach" guid="D7B14413-6C00-1014-B904-200204C60A89">
|
||||
<Object name="Object" guid="D7B144E3-6C00-1014-B904-200204C60A89">
|
||||
<Script name="Sound_Prim_Script__On_Attach_1.lsl" guid="D7B15C16-6C00-1014-B904-200204C60A89">
|
||||
</Script>
|
||||
</Object>
|
||||
</Project>
|
||||
Reference in New Issue
Block a user