Page 1 of 1

Looping Animations

Posted: Sun Aug 19, 2007 3:50 pm
by broomfighter
How do you make an animation loop? I changed mauls deflect anim to his dashattack one and it played, just only once
i tried adding loop(1) and restartanimation(1) to the state, but no luck
heres the important part

Code: Select all

State("DEFLECT")
{
    Posture("Stand");
    Sound("imp_weap_lightsabre_block");
    Animation("stand_dashattack")
    {
        Loop(1);
        AimType("None");
        BlendInTime(0.15);
        BlendOutTime(0.15);
        LowResPose(0, "Frames");
    }
    RestartAnimation();

    Duration(0.0);  // infinite duration, looping anim

    InputLock(0.0, "All", "!Thrust");   // lock all but move controller for duration of state
    EnergyRestoreRate(0.0);   // drain energy while ready to deflect
    Deflect()
    {
        DeflectAngle(-60, 60);  // deflect anything from forward arc
        EnergyCost(10.0);

        DeflectAnimation("stand_dashattack", "Forward")
        {
            // AimType("Torso");
            BlendInTime(0.00);
            BlendOutTime(0.05);
            LowResPose(5, "Frames");
        }
        DeflectAnimation("stand_dashattack", "Forward")
        {
            // AimType("Torso");
            BlendInTime(0.00);
            BlendOutTime(0.05);
            LowResPose(5, "Frames");
        }
        DeflectAnimation("stand_dashattack", "Left")
        {
            // AimType("Torso");
            BlendInTime(0.00);
            BlendOutTime(0.05);
            LowResPose(5, "Frames");
        }
        DeflectAnimation("stand_dashattack", "Left")
        {
            // AimType("Torso");
            BlendInTime(0.00);
            BlendOutTime(0.05);
            LowResPose(5, "Frames");
        }
        DeflectAnimation("stand_dashattack", "Right")
        {
            // AimType("Torso");
            BlendInTime(0.00);
            BlendOutTime(0.05);
            LowResPose(5, "Frames");
        }
        DeflectAnimation("stand_dashattack", "Right")
        {
            // AimType("Torso");
            BlendInTime(0.00);
            BlendOutTime(0.05);
            LowResPose(5, "Frames");
        }
    }

RE: Looping Animations

Posted: Mon Aug 20, 2007 3:43 pm
by Qdin
why would you have it to loop..?

That'll just mean that this single animation will be played until another one is activated, right? imagine to loop the landing animation :roll: when he stands still it plays this animation over and over again... May I ask again - why, you wanna loop a deflect animation to his dashattack?

Posted: Tue Aug 21, 2007 2:21 pm
by broomfighter
Ever played Shaakti?
lol
I ended up just using her combo
though it still isnt working right

Posted: Tue Aug 21, 2007 5:44 pm
by Caleb1117
Ah Shaak Ti Awsomeness.
I can't help you really, but If you figure something out to make that work, I would very much like it for my map.

Posted: Tue Aug 21, 2007 7:05 pm
by Teancum
Shaak Ti used custom animations I was asked not to release. The best thing you can do is just have her use someone else's combo since there's no decent animations for deflecting.

Posted: Tue Aug 21, 2007 7:35 pm
by broomfighter
o im not doing this for shaak ti
im doing this for a magnaguard with electrostaff

Posted: Tue Aug 21, 2007 8:33 pm
by Syth
*MODERATOR EDIT* --- Don't make assumptions that can get others in trouble.

Posted: Tue Aug 21, 2007 8:57 pm
by ARC_Commander
Hmm... It could be someone who I helped alienate from GT... :( He worked for LA.

Posted: Wed Aug 22, 2007 6:08 am
by Qdin
if you're talking about Fred I have my doubts... I know that because I talk to him myself :P And he doesn't have much understanding of animations, and if I remember right there's more than him around who worked for Pandemic and/or LA:wink: Nonetheless, the final fact is that it won't be release.

Ever got the respond to your question(s), broomfighter?