The system I want to make is that by the percentage of bleed, there’s a chance to disable the skill.
But with this code every skill just get disabled no matter the bleed value(I set it to 0 to test the system).
What are the errors?
Randomness generates a new number every frame (about 60 times/second).
Try generating the random number once at the beginning of the scene and saving it to a local variable or something.
1 Like
I didn’t know that, Thank you! But how do I do that?
1 Like
Nevermind, I figured it out! Thank you.
1 Like