Call clients controllers from Game Mode

Hi! I am having the following problem:

**1) **In my game, when the match is over, the game mode is notified.

**2) **The game mode make some calculations about the player scores and then iterate over the players controllers to let them know the game was ended.

**3) **At this moment each player controller create a widget and show the results.

Now the problem (I think) is that the “clients” player controllers doesn’t get called but instead the Server side player controller are called…
So the Widget showing the above information is never added to vierport in clients.

If I understand the problem, the Game Mode only exist in the Server, and the players controllers that I can get in the Game Mode are not locally controlled.
So the Widgets are never added to the client viewport

if this is the problem, How can I get it working?


How are you iterating it over the player controllers? You should try moving the scores over to the game state. I suggest reading this article.

  • J