How to make a float Randomizer for Animations

Hi, I was wondering if you could help me, I want to make an ideal animation play every 1 out of 20 times and if possible make it take a few seconds before it can play again, sorry I’m new to coding so if you know a better way to do this then that would be great.

Kind regards.

Hello,

A possible workaround is to create a float variable in your Event Graph (let’s call it RandomValue) and assign it the value of the Random Float in Range function in the Blueprint Update Animation Event. Then, instead of using the function directly in your Anim Graph, you use the RandomValue variable.

I found this from a different but related question

Hope this helps!

Thanks for your help :slight_smile: