Custom PlayerController init via. c++?

Hey Guys,

how can I initialize a custum PlayerController-Blueprint via. C++?

I use my own GameMode, somehow I can`t change my Player Controller Class directly in the Editor its grey out.

Cheers,

There varbale in AGameMode called PlayerControllerClass, so in your GameMode class constructor place:

PlayerControllerClass = AYourPlayerControllerClass::StaticClass();