automatically play animation when getting damaged from enemy

hello. i want a add a new feature.



when enemy hits me i want to play animation with 17% chance. like old Dota 2 hero Axe.
that animation plays automatically and give damage to the enemy.


this is my attack blueprint in my character.
thank you for your helps.

you can add a random int between 0 and 100 to choose to play an animation automatically if the random number is below 17 (does that give 17% chance?)

Where do you plug that in?
Do you want to play that animation on your player character when taking damage?

Then do it like that:

Another way is:

Change value to 0.17.

1 Like

(post deleted by author)


it works like this. thank you sir.

1 Like

thanks sir.

Very nice!

You’re welcome.