Download

Randomized animations don't transition fully

I’m using an enum of attack animations such that when a random integer is generated an attack from the enum’s called randomly. I have an BPI that fires off from inside a BTT task and from there, the random int value’s calculated. That info is sent from my character’s BP to its Animation BP where the randomized int value is used to select an attack. I’m using a state machine with one Idle/
Walk/Run state and one Attack state. The actual attack selection is done in the Attack state. Problem is that whenever a new animation (random int) comes in, the animation that it’s currently in is interrupted and hitches. The animations are being randomized as expected just not being allowed to go through their full transition. I tried adding in delays but that doesn’t seem to help.