Themabewertung:
  • 0 Bewertung(en) - 0 im Durchschnitt
  • 1
  • 2
  • 3
  • 4
  • 5
Stop all Animations
#2
Ich habe das alte Ding in SL sogar gefunden und da es mod war den Script entnommen.

DER löste das Problem aber NICHT

Code:
key stopme;

default
{
    state_entry()
    {
        llSetTouchText("Stop Animation");
        llSetText("Stop All Animations\nFree to copy",<1,1,1>,1);
    }
    touch_start(integer total_number)
    {
        stopme = llDetectedKey(0);
        llRequestPermissions(llDetectedKey(0),PERMISSION_TRIGGER_ANIMATION);
    }
    run_time_permissions(integer a)
    {
        if (a & PERMISSION_TRIGGER_ANIMATION)
        {
            string null=(string)NULL_KEY;
            list a=llGetAnimationList(stopme);
            integer b;
            for (b;b<llGetListLength(a);b++)
            {
                //sometimes it gives you a null key, it's a bug and very annoying. remove if statement when fixed.
                if (llList2String(a,b)!= null )
                {
                   if(llList2String(a,b) != "2408fe9e-df1d-1d7d-f4ff-1384fa7b350f")
                    {
                    llStopAnimation(llList2String(a,b));
                    }
                }
            }
           // llStartAnimation("stand");          
        }
        
    }
}
Roaming the Metaverse

Profil auf GooglePlus

Zitieren


Nachrichten in diesem Thema
Stop all Animations - von Leora Jacobus - 18.02.2024, 19:26
RE: Stop all Animations - von Leora Jacobus - 18.02.2024, 19:38
RE: Stop all Animations - von Anachron - 18.02.2024, 20:35
RE: Stop all Animations - von Leora Jacobus - 19.02.2024, 10:15

Gehe zu:


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste