Local multiplayer: different key bindings for each local player?
To define key bindings for each local Player, u will need to create your own UGameViewportClient derived class and ur own UPlayerController derived class. (My aproach is in C++, as the wiki says it is the only way to do this). In your class derived from UGameViewportClient, add the code specified in the following link https://wiki.unrealengine.com/Local_Multiplayer_Tips wich tells u depending ur gamecontrollers case, the code to add.
Then, create a class derived from UPlayerController as i told you, there u need to override the SetupInputComponent to differentiate each binding for each player id. Declare ir your UPlayerControllerOwnClass.h:
And then in ur .cpp file:
This will work if you DO NOT override the SetupInputComponent in your Character or pawn class that is handle by the Player.
answered Jul 19 '16 at 07:40 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here