Jump to content

loop a sound while typing


Granny Delicioso
 Share

You are about to reply to a thread that has been inactive for 3793 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

hey sup

i've never scripted a dang thing in my life, but i want to make an attachment that loops a sound while i'm typing, so that it looks like i'm beatboxing when i talk

but i don't know where to begin, and like i said, i've never scripted before

i tried borrowing premade scripts but none of them seemed to work. maybe i'm doing something wrong?

i dunno, help me out. teach me the ways... of the script....

Link to comment
Share on other sites

The script above will produce an error, because the the UUID of the Agent who is typing is missing. Here is a working version with the full script:

 

default{    state_entry()    {       llSetTimerEvent(1);//the time in seconds here should match the length of your typing sound loop..    }  timer() {                    if (llGetAgentInfo(llGetOwner()) & AGENT_TYPING)                            {                 llLoopSound("mysound", 0.2);                      }                              else                {                llStopSound();                 }        }}

 

Link to comment
Share on other sites

  • 1 year later...
You are about to reply to a thread that has been inactive for 3793 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...