I have created a new project now in engine version 4.8.2, and overriden several functions and added debug messages to screen inside them to see when and if they are called. I have included project as an attachment. You will have to rebuild project after unzipping file. following modifications are done (in C++):
- Inside BugTestProjectCharacter class, I have done following:
- Added function checkPlayerState. This function is called when clicking LMB.
- I have overriden UnPossessed function declared in Pawn.
- I then added a new class called BugTestProjectPlayerController that extends from PlayerController. Inside this class, I have done following:
- I have overriden BeginSpectatingState function declared in PlayerController.
- I have overriden UnPossess function declared in Controller.
- Finally, I modified BugTestProjectGameMode to use BugTestProjectPlayerController class as its Player Controller.
To test project, make sure to do following:
Click Play in editor as “Standalone Game” with following settings under Advanced Settings → Multiplayer Options:
- Number of players: 4
- Uncheck “Use Single Process”
- Editor Multiplayer Mode: “Play as Listen Server”