Montage randomly stops playing when enemy is too close to player

ViceVersa
Sun, 24 Jan 2016 19:41:33 +0000
Character & Animation

so i have this zombie in my game, and i made an attack montage for it that i want to play when he gets a certain distance to the player. I used to have it set up as a state in the animation blueprint, but then i realized i cant play a montage in there so i switched it to play in the character blueprint. Basically what happens is, the zombie(the enemy) behaves regularly, when he gets to a certain distance(which is currently way to big, just for testing purposes), he starts playing the attack montage. but when hes directly next to the character(where hes supposed to be when hes attacking), it randomly stops playing, and he goes back to the idle animation, and then the montage will all of a sudden play again when my character moves away from him. Even the print String that i have set up in the event tick event stops playing when hes standing directly next to my player. I cant figure out why this is happening, any ideas? heres the blueprint… note: the isAttacking boolean doesnt actually do anything anymore, that was being used for the animation BP earlier.

5 posts - 4 participants