instead of that I will give you the game viewport client (subclass) headers which is pre-edited to remove the restriction of keyboard. … follow these steps:
- Download the attachment and extract the files.
- Move both files to <Your Project Folder Path> \ Source \ <Your Project’s Name Folder>.
- Open your project.
- Compile these two files if needed (using visual studio)
- Open your project settings in the engine and select General Settings.
- Under the Default Classes header you shall find Game Viewport Client Class
- change it to MultiplayerViewPortClient (which the customized subclass) instead of GameViewPortClient.
- now in order to spawn the players you will have to create players in your level blueprint. (in my case I’ve created 3 players: one for the master camera actor which tracks both of them, and the others for my spawned character)
- Auto Possess your characters with players (according to how many players you want to possess or to have an individual controller)
in my case I've possessed MainCharacter with Player_1 , and TheSecondCharacter with Player_2 , and the MasterCameraActor with Player_0 - map your special keyboard inputs to each one of them.
- Enjoy.
follow[link text][2]
