My ultimate goal here, is to have each consecutive player to join a networked multiplayer game have a unique player number above their head… but right now I’d settle on just setting an integer variable in character that i could use for any number or things.
What I have:
- A GameMode that has the Default Pawn Class set to a Character called HeroCharacter
- HeroCharacter is a Character Class that has a Variable (Integer) called PlayerNumber. The Variable is set to Public.
I gather I need to use the Event OnPostLogin in the GameMode Blueprint to refer to the player controller (presuambly via the NewPlayer Output) that has just logged in, but I don’t know how reference the playercontroller in such a way that it can access the Variables inside the player character.
I’d like to have a variable inside the GameMode that simply increments as each player logs in, assinging the next number to each player.
Please and Thank you for anyone willing to help.