Multiplayer - Server request client HUD to run function
Working on my multiplayer game (dedicated server), and I ran into some confusion regarding updating my client's HUD from server.
How can I call a HUD widget function from a server-only chain of events?
The HUD class isn't replicated so only the client who owns that HUD knows of it. This means that if the server side tries to reference something on the client that only the client owns, it will not work.
What you can do is send the data you want to change to a class that is replicated, such as the PlayerController, which is only owned by the server and the owning client; clients can only see their own PlayerController class. The PlayerController is also in charge of creating the client side HUD class so it has a reference. You can use this reference to pass in anything from the PlayerController to the HUD.
Follow this question
Once you sign in you will be able to subscribe for any updates here