GameMode override events/functions for manually creating PlayerStates for each PlayerController?

Is there a place I can override/extend the PlayerState creation process? I know I can specify a custom PlayerState actor that extends the UE4 PlayerState object. I’d like to control the spawning of my custom PlayerState so I could pass a parameter to each PlayerState on spawn. I want the parameter to be Editable, Private and Expose on Spawn so it will act like a regular object constructor parameter with no public setter.

So far the only GameMode functions and events that I can override in blueprints appear to be after each PlayerController was already spawned (thus the PlayerStates are already instantiated).

Bump. I still need help finding a solution.

What you’re looking for is to override the method AController::InitPlayerState()

Check the documentation here:

1 Like