Controller Class

Hello Folks,

can anyone help me creating a Controller Class. I just want to know what is necessary to do so. Just created a “ControllerClass” which is derived by PlayerController. Added some functionless functions. What must i do to set the “ControllerClass” on my Actor or Pawn. Or should i use the MovementComponent to move the Actor or Pawn in a direction.

Best Regards

In the constructor of your own custom Gamemode:

PlayerControllerClass = AMyPlayerController::StaticClass()

Hello TheJamsh,

thanks for the reply. do you or anyone can tell me how i can call the function in the Controllerclass if i hit a button or something.

thanks

Best Regards