Push All Scripts
This commit is contained in:
3
Play_Sound/Play_Sound.sol
Normal file
3
Play_Sound/Play_Sound.sol
Normal file
@@ -0,0 +1,3 @@
|
||||
<Solution name="Play_Sound">
|
||||
<Project name="Play_Sound" path="Play_Sound\Play_Sound.prj" active="true"/>
|
||||
</Solution>
|
||||
75
Play_Sound/Play_Sound/Object/Play_Sound_1.lsl
Normal file
75
Play_Sound/Play_Sound/Object/Play_Sound_1.lsl
Normal file
@@ -0,0 +1,75 @@
|
||||
// :CATEGORY:Sound
|
||||
// :NAME:Play_Sound
|
||||
// :AUTHOR:Scot Titian
|
||||
// :CREATED:2010-10-21 21:39:06.097
|
||||
// :EDITED:2013-09-18 15:38:59
|
||||
// :ID:634
|
||||
// :NUM:862
|
||||
// :REV:1.0
|
||||
// :WORLD:Second Life
|
||||
// :DESCRIPTION:
|
||||
// Simple sound script.
|
||||
// :CODE:
|
||||
/*//--Written by Scot Titian--//*/
|
||||
|
||||
/*// This script is free to //*/
|
||||
|
||||
/*// use and distribute as //*/
|
||||
|
||||
/*// long as you leave this //*/
|
||||
|
||||
/*// headear here at the top //*/
|
||||
|
||||
/*// of the script. //*/
|
||||
|
||||
/*//--------------------------//*/
|
||||
|
||||
|
||||
|
||||
//--NOTE: To use the name of the Sound you must put the sound in the same object this script is in
|
||||
|
||||
|
||||
|
||||
integer gPlaying; //--If we are playing sound
|
||||
|
||||
key gAnimKey = ""; //--The ID of the sound to play
|
||||
|
||||
string gAnimName = ""; //--The name of the animation if you don't have the ID
|
||||
|
||||
integer gUseKey = TRUE; //--Set to false if you don't have the ID of the animation
|
||||
|
||||
integer gDelay = 20; //--How long to wait before we can play the sound again (In seconds)
|
||||
|
||||
integer gCanPlay; //--If the animation can play (for the delay)
|
||||
|
||||
integer gAllowAll = TRUE; //--If everyone can click us (Set to false for owner only)
|
||||
|
||||
|
||||
|
||||
default
|
||||
|
||||
{
|
||||
|
||||
state_entry()
|
||||
|
||||
{
|
||||
|
||||
gPlaying = FALSE; //--We start out not playing sound
|
||||
|
||||
gCanPlay = TRUE; //--We start able to play
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
touch_start(integer total_number)
|
||||
|
||||
{
|
||||
|
||||
if(TRUE == gAllowAll)
|
||||
|
||||
{
|
||||
|
||||
if(TRUE == gCanPlay)
|
||||
|
||||
{
|
||||
7
Play_Sound/Play_Sound/Object/_vti_cnf/Play_Sound_1.lsl
Normal file
7
Play_Sound/Play_Sound/Object/_vti_cnf/Play_Sound_1.lsl
Normal file
@@ -0,0 +1,7 @@
|
||||
vti_encoding:SR|utf8-nl
|
||||
vti_timelastmodified:TR|08 Sep 2013 03:49:04 -0000
|
||||
vti_extenderversion:SR|12.0.0.6211
|
||||
vti_backlinkinfo:VX|
|
||||
vti_author:SR|alien\\fred
|
||||
vti_modifiedby:SR|alien\\fred
|
||||
vti_timecreated:TR|18 Sep 2013 20:38:59 -0000
|
||||
6
Play_Sound/Play_Sound/Play_Sound.prj
Normal file
6
Play_Sound/Play_Sound/Play_Sound.prj
Normal file
@@ -0,0 +1,6 @@
|
||||
<Project name="Play_Sound" guid="D86E8321-6C00-1014-B904-200204C60A89">
|
||||
<Object name="Object" guid="D86E8401-6C00-1014-B904-200204C60A89">
|
||||
<Script name="Play_Sound_1.lsl" guid="D86EA1AE-6C00-1014-B904-200204C60A89">
|
||||
</Script>
|
||||
</Object>
|
||||
</Project>
|
||||
6
Play_Sound/Play_Sound/_vti_cnf/Play_Sound.prj
Normal file
6
Play_Sound/Play_Sound/_vti_cnf/Play_Sound.prj
Normal file
@@ -0,0 +1,6 @@
|
||||
vti_encoding:SR|utf8-nl
|
||||
vti_timelastmodified:TR|17 Aug 2013 23:32:38 -0000
|
||||
vti_extenderversion:SR|12.0.0.0
|
||||
vti_cacheddtm:TX|17 Aug 2013 23:32:38 -0000
|
||||
vti_filesize:IR|259
|
||||
vti_backlinkinfo:VX|
|
||||
6
Play_Sound/_vti_cnf/Play_Sound.sol
Normal file
6
Play_Sound/_vti_cnf/Play_Sound.sol
Normal file
@@ -0,0 +1,6 @@
|
||||
vti_encoding:SR|utf8-nl
|
||||
vti_timelastmodified:TR|17 Aug 2013 23:32:38 -0000
|
||||
vti_extenderversion:SR|12.0.0.0
|
||||
vti_cacheddtm:TX|17 Aug 2013 23:32:38 -0000
|
||||
vti_filesize:IR|120
|
||||
vti_backlinkinfo:VX|
|
||||
Reference in New Issue
Block a user