Sort Characters by their Speed Stat In Array (Turn Based Combat)

Kazzinga01
Thu, 16 May 2024 20:23:14 +0000
Blueprint

I tried this before in 4.27, is the same blueprints but in UE 5.4 it gives me infinite loop Error. The Function take some characters check their’s speeds and put them in an array of speeds, then it sort them from the high number to the lower. Then i Check every character speed to see if it’s the same of the sorted speeds. It should work, but it doesn’t want to, i can’t really get the problem why. I call the funtion only once in the begin play, and that make it crash the game. There’s an easier way to sort characters in order in an array based on their stats speed?

.

3 posts - 2 participants