What is wrong with my team divider loop?

Alright, here is the picture:

click it, and you will be able to zoom in to read the text.

So, what happens is that I get one “cast failed @gamemode” message, and that’s it. Further down (not in the picture) it prints numplayers, and I can confirm it is not 0.

Thank you in advance,
-DoctorPC

Maybe try getting the player character. Then cast from that.

So Get Player Character => Get Controller => Cast to YpsilonRTSController? Doesn’t work. Tried both “Character” & “Pawn”, both gave the same non-results.

Have you set your default Player Controller to YpsilonRTSController in the GameMode settings?

I sure have. The pawns also print out their controller 2s after BeginPlay, and the result is always “YpsilonRTSController17” (or whatever the current number is).