niston Posted February 21, 2020 Share Posted February 21, 2020 So I have this button that's got an "Activate" animation (NiControllerSequence) on it, which depresses the button. The button doesn't have a behavior graph. PlayGameybroAnimation("Activate") works perfectly fine to play the animation - Exactly once. Means if I play "Activate", the button-press animation plays once and only once. If I do another PlayGamebryoAnimation("Activate") thereafter, the button does no longer animate. All other animations on the button (button lit/unlit) work fine afterwards. Only the "Activate" animation gets stuck in this way. Funny thing also is, when I change the Cycle Type from _CLAMP to _LOOP on the NiControllerSequence "Activate", I can then first play "Activate", then play some other Animation to stop the now perpetually repeating Activate anim, and finally I'm able to replay the Activate anim normally after - the button animation doesn't get stuck anymore. Weird, huh? What could be the problem? EDIT: Solved. One needs to use PlayGamebryoAnimation(animName, abStartOver=true) for this kind of animation. The true parameter makes it play from the beginning again. I don't know why the other animations (which are also of cycle type CYCLE_CLAMP) do not require this. But as a matter of fact, the "Activate" animation on this particular button does. *shrug* Link to comment Share on other sites More sharing options...
Recommended Posts