Jump to content

loop a sound while typing

Granny Delicioso

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...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...