Please spot the flaw in my logic (random integer in range)
Have I made an glaring error here? Surely it should never hit the print string? I've been staring at this too long so perhaps I can no longer see the obvious!
asked Jun 22 '18 at 12:24 PM in Blueprint Scripting
llll Sabre llll
Every time you're checking that variable it's generating a new random integer. So it's a different number at every branch. Meaning it could be 0, 1, 2 at the last branch.
You should promote the result of Random Integer in Range to a local variable before the first branch. And then compare that variable, instead of the output of the random node.
Follow this question
Once you sign in you will be able to subscribe for any updates here