Good morning all!
I’m working on a Pokemon game for fun just to practice my UE5 skills. I’m fairly new with UE5 and have maybe about 4 months of experience.
I’m currently trying to incorporate accuracy into my game where as you’ll see in the pics below, I’m using a math expression to calculate the accuracy where currently the result is always 50. Accuracy can be a value between 0 (definite miss) and 100 (definite hit).
I then use a random float in range node to set up the chance of the attack actually hitting. If the random float in range result is greater than or equal to the Accuracy, then the attack will hit.
As shown below, it looks like the branch node is not doing its job, at least from what I can see… There two very different results which in one of them, the random float in range result is way less than the accuracy (notice the blue text in the top left of the image), yet the result still appears as TRUE.
Any ideas what can be causing this? Any input would be fantastic as I’m still quite new at all of this and maybe missed something very obvious.



