How to Create array of Player Controllers in C++

In my game mode blueprint, I have an EventOnPostLogin that adds each player controller to an array, so that I can assign them names, roles and other variables.

I’m trying to move this logic to C++. Can anyone help me with what code I would use to do the same thing as above in C++?

image

Is an override of postlogin correct?

Figured it out.

image

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.