I’m trying to make a function that will create an array of 4 integers, each limited to [-2, 2], by spending a random amount of points that can be anywhere within [1, 12]. The plan is to only make the values from [0,2] and randomly choose what’s made negative after every point is spent. It costs one point to go from 0 to 1, and 2 points to go from 1 to 2 and if the value is already at 2, it should be skipped.
You can see the blueprint I made here: Unsure why an Infinite Loop is showing posted by anonymous | blueprintUE | PasteBin For Unreal Engine
I don’t know why, but UE keeps saying that it’s going to create an infinite loop when I try to play it, but the simulation goes through fine.
If you need any more information or details, just let me know. Any help you can provide would be greatly appreciated.
