I am creating a 2 player demo and am trying to spawn a Widget on both the Server and the Client but I am facing two problems:
When Event Begin Play is triggered I Get Controlled Pawn and cast it to my character. This works fine for my Server but not for my Client. It seems the client has a controlled pawn eventually but not when this event is fired. Am I doing something wrong?
I am spawning a Widget in the player controller on Event Begin Play but as the Server has 2 player controllers whereas the Client only has 1 the Server ends up spawning 2 Widgets and the client spawns 1. Is there a way to check if this Player Controller ‘belongs’ to me? i.e the server will check Player Controller 0 and it will spawn the Widget and then the server will check Player Controller 1 and will not spawn a widget as that Player Controller ‘belongs’ to the client.
Thank you in advance!