How to skip number if not exists in SaveGame and then use Random from Range?

Hi,

this is my BP:

I don’t have idea how to continue.
I need from 0-20 random from range, but If not exists number 18, then never use 18 in random.
I need skip this number, and find number which is still exists.

Thanks for your help.

So, a random player index?

thanks for your help.
but here missing Load Game from Slot and check if is blocked=true/false then random only which number is still exists if isblocked=true? We can use index random then.

thanks.

I can’t read your pic, it’s too small.

But if the bool is true ( or false, I don’t know ), you put then in the new array.

When you’ve finished, you can shuffle the array, and the using index 0 is a random choice.

I didn’t include the load game, because that’s not the issue here… :slight_smile:

okaj i will try thanks.

1 Like