I made an animation for when the player equips a gun equips, but the character just returns to its original state when the track ends:
How do you make it stick to the last keyframe?
I made an animation for when the player equips a gun equips, but the character just returns to its original state when the track ends:
How do you make it stick to the last keyframe?
Perhaps just before the animation ends, put Animation:AdjustSpeed(0)
? This will pause the animation.
Just an idea, hope it helps
I’m not sure if this is a good way but, I create another animation that is basically the very end of your equip animation. Then I create 2 keyframes, which are exactly the same, then put it on loop. This is how I do it there might be a better way.
Wouldn’t that put a strain on performance somewhat due to it playing and stopping an animation over and over again?
I mean, it worked fine for me and I don’t know if animations have an event or function that could let you do this
I just have an animation with one keyframe and set it on looped.
As @SnarlyZoo has said, the best thing would be to have you handler or whatever you use for you animations to have an eqiupped animation and an idle hold animation, using just one keyframe and having it on loop. This will play right after or a very short time before the previous animation ends.
Sorry for bumping, but i think this is the best solution:
Does not require creating a completely new animation.