Granny Delicioso Posted February 28, 2012 Share Posted February 28, 2012 hey supi'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 talkbut i don't know where to begin, and like i said, i've never scripted beforei 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 More sharing options...
DoteDote Edison Posted February 28, 2012 Share Posted February 28, 2012 Run a timer that uses llGetAgentInfo() to test if you're typing. timer() { if (llGetAgentInfo() & AGENT_TYPING) llLoopSound("beatbox", 0.2); else llStopSound();} Link to comment Share on other sites More sharing options...
Maximillian Merlin Posted February 29, 2012 Share Posted February 29, 2012 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 More sharing options...
veniaminovich Posted December 1, 2013 Share Posted December 1, 2013 Thank you very much for the last one, but it doesn't work in script forbidden zones. Is there any way to make it to? Preload, or something like that? Sorry not much up to scripting. Link to comment Share on other sites More sharing options...
Recommended Posts
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