Set different playercontroller in game mode
I made a new c++ project and started the c++ programming tutorial. Now I want to increment an integer variable whenever I click on my actor.
I googled a bit and apparently I have to enable mouse input in the player controller. I made a new one since I didn't have it already. Now I need to set the player controller in the game mode. I can't edit the player controller with project settings - maps & modes (everything is greyed out). I'm guessing that is because it is a c++ project. So I have to change the playercontroller in my gamemode.cpp file? There's no playercontroller variable or a setplayercontroller function as far as i know, so how do I do this?
Or would it be better to make a new blueprint gamemode and set a blueprint playercontroller in the project settings?
asked Mar 04 '15 at 10:37 AM in C++ Programming
Wiki For You
I have a wiki on exactly this subject :)
This is a C++ solution
Linking Custom Player Controller to Game Mode https://wiki.unrealengine.com/Game_Mode,_Linking_to_Player_Controller_Blueprint
answered Mar 04 '15 at 11:16 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here