Hello,
So, the situation is that I have pawns already placed in the world in editor.
I do not wish to spawn and auto-possess a pawn using the game mode when the player joins.
The problem is that the server correctly possesses a pawn, but the client does not.
It’s my understanding that possession should take place server side, but I cannot figure out how the server can access the client’s Player Controller in order to force a possession.
If I knew how to directly access the player controller of a specific player (say using an index value) from the server, then the desired result should be achievable, but I do not understand how to do this.
I’ve been trying both in C++ and BP to fix this, but I am having no luck.
The only alternative approach that I can take is to spawn the pawns along with the Player Controller in the ‘traditional’ means, but this is not desirable as a number of settings for the pawn would also have to be generated.
I can provide evidence of previous attempts, though I’m not sure how useful they will be.
It would be greatly appreciated if someone could point me in the right direction here.
Edit: So, I managed to get this working on client side only by using the “PostLogin Event” which returns the newest player controller added and thus forcing a possession.
This doesn’t work server side however unless using a dedicated server, which gives me the desired result.
I’m not certain that I want to take the dedicated server approach however.