Download

Play random UMG widget animation

I added 4 different fade animations to my damage text and playing them randomly with equal chances. Am I doing it effectively or is there a cleaner solution?

Also how could I play different animations with equal chances if there were only 3 animations?

Thanks

[SPOILER]

[/SPOILER]

Instead of the way you are doing it with all the branch nodes etc, you may be able to do this with a select node. Basically, each of the animations will be an option in the select node, and the random integer from range will be the wildcard. Then from the output of the select node, you just attach it to the Play animation node. Would cut your process down significantly.

Here is what it would look like:

Thanks. I felt there is a better way than I did.