Interface event in Player Controller

Hey, so basically I have a Blueprint interface for event “Display Game Widget” which is usually ran in the game instance class. However since I’m trying to reuse the script for multiplayer gameplay, I have no idea how to access the correct player controller for the creating the widget (and setting owner) once connected to a session. To work around this, I have attempted copying the whole event from the game instance into the player controller, but after implementing the interface and everything, the events do not fire for some reason.

(Playing game state is used as an example of how widgets are displayed)

(Included interface contains event “Display Game Widget”)

I am very new to interfaces and any help is appreciated. Alternatively, if you know a way to access the correct player controller (clients player controller) from the game instance after joining a session, please let me know.

I don’t know if you still need help, but your problem seems pretty close to what I got recently.
You need to get all your player controller and retrieve the player state from it.

The index of the controller will help you get the desired player. I’m still struggling for implementing the interface (mine won’t be called) but it should help (it you didn’t solve this problem ^^) .

Here the post that I created for this problem :

Hope it help you or others :grin: