How can I get the player's name?

Is there a way that I can get the name that is shown in the leaderboards of the shooterexample? I am trying to create a lobby system, and I want to show the player’s names and information on the side, but I can’t get the player’s name.

That worked very well! Thanks!! However, I have one more question, I cant seem to find that OnPostLogin event, is that a custom event? If so, where did it come from?

You can find it in the gamemode(create a new one and by writing “Event OnPostLogin” it will appear,don’t forget to set it in the world settings too!),it executes everytime a player joins the session

If you are using the Steam subsystem you should find the username string in the player state,

just cast to the newly joined player controller->GetPlayerState->Get Player name

here’s an example i’ve done in the gamemode

I still cant seem to find that event, do I need to create a new game mode? I have one that i’m already using. And it is set in the world settings to be the game mode that it uses. What version of unreal engine are you using?

I’m using 4.11 but it should be on 4.8 too .
Open the gamemode blueprint file,double click on the left “Event Graph” and try writing the event again.