Jump to content
You are about to reply to a thread that has been inactive for 1522 days.

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

Recommended Posts

Posted

hello, i make a script that begin to play sounds with a touch, works good on rez but when i add on my avatar doest work anymore, someone can help me figure the problem?

the script(i already tried replace llPlaySound for llTriggerSound) :

integer truefalse = 0;
default
{
    state_entry()
    {
        llSetTimerEvent(0.7);
    }
    timer()
    {
        if (truefalse == 1)
        {
        llSleep(0.5);
        llLoopSound("Hum", 1.0);
        }
        else
        {
        llStopSound();
        }
    }
    touch_start(integer total_number)
    {
        if (truefalse == 0)
        {
        llPlaySound("SaberOn", 0.2);
        llSetLinkAlpha( 13, 100, ALL_SIDES );
        llSetLinkPrimitiveParamsFast( 13, [ PRIM_GLOW, ALL_SIDES, 0.50 ] );
        llSetLinkPrimitiveParamsFast( 12, [ PRIM_COLOR, ALL_SIDES, <0,1,0>, 1]);
        llSetLinkPrimitiveParamsFast( 7, [ PRIM_GLOW, ALL_SIDES, 0.70 ] );
        llSetLinkPrimitiveParamsFast( 7, [ PRIM_COLOR, ALL_SIDES, <1,0.4,0>, 1]);
        truefalse = truefalse + 1;
        }
        else
        {
        llPlaySound("SaberOn", 0.2);
        llSetLinkAlpha( 13, 0, ALL_SIDES );
        llSetLinkPrimitiveParamsFast( 13, [ PRIM_GLOW, ALL_SIDES, 0 ] );
        llSetLinkPrimitiveParamsFast( 12, [ PRIM_COLOR, ALL_SIDES, <1,0,0>, 1]);
        llSetLinkPrimitiveParamsFast( 7, [ PRIM_GLOW, ALL_SIDES, 0 ] );
        llSetLinkPrimitiveParamsFast( 7, [ PRIM_COLOR, ALL_SIDES, <1,1,1>, 1]);
        truefalse = truefalse - 1;
         }
    }
}

 

Posted

Some things worth to comment but it should work.

I don't think it's a scripting problem though. Switch on AttachedSound in your viewer. Then you can hear sound of things that are attached to avatars.

  • Like 1
You are about to reply to a thread that has been inactive for 1522 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
×
×
  • Create New...