Change font size
It is currently Sat Dec 15, 2018 1:43 pm

Forum rules


{L_IMAGE}



Post a new topicPost a reply Page 1 of 1   [ 3 posts ]
Author Message
 Post subject: Loop sound by Touch by Samantha Fuller
PostPosted: Fri May 16, 2008 3:16 am 
Site Admin
User avatar

Joined: Sat Feb 02, 2008 5:27 pm
Posts: 843
{L_CODE}:
// *** Loop sound by Touch
// *** by Samantha Fuller ***
// *** ver 1 for OLG alpha .5 - April 26 /08 ***

integer on;
default
{
    state_entry()
    {
        // this now causes a short hicup 4-26-08
        llLoopSound("d01ee3d7-7985-1db2-55d5-facc4b790694",1);
        llWhisper(0,"starting loop sound");
    }
touch_start(integer touches)
    {
        if (on == 0)
        {
            on = 1;
            llLoopSound("d01ee3d7-7985-1db2-55d5-facc4b790694",1);
            llWhisper(0,"playing sound");
        }
        else
        {
            on = 0;
//            llStopSound(); // isen't working as of 4-26-08
// playing any short sound results in stop, reduce volume for crude taper stop
            llPlaySound("d01ee3d7-7985-1db2-55d5-facc4b790694",.5);
            llWhisper(0,"Stoping sound");
        }
    }
}


Top
 Profile  
 
 Post subject: Re: Loop sound by Touch by Samantha Fuller
PostPosted: Tue May 27, 2008 1:42 am 
Site Admin
User avatar

Joined: Sat Feb 02, 2008 5:27 pm
Posts: 843
Finally got around to testing this script and it works great until you relog and the sound is no longer playing. :cry:


Top
 Profile  
 
 Post subject: Re: Loop sound by Touch by Samantha Fuller
PostPosted: Wed Jun 18, 2008 12:46 am 
Site Admin
User avatar

Joined: Sat Feb 02, 2008 5:27 pm
Posts: 843
script is working now :D


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 3 posts ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
610nm Style by Daniel St. Jules of Gamexe.net