Dedicated server (Trying to read property HUD)
We create a widget in the class Pawn. Pass the widget to the variables, in the widget, we perform calculations and output to the screen. We have an error in the process of work. As we can judge the calculations are correct.
(variables in companets have the meanings) (variables between Pawn and the widget are linked)
asked Apr 10 '18 at 07:17 PM in Blueprint Scripting
The server doesn't have a HUD so you need to check what you are running on before doing any HUD work. You can set up a Branch and feed it the result of IsLocallyControlled. On True, do the HUD work.
This will prevent the server from creating a HUD but it will also prevent other pawns (other players and/or AI) from affecting the HUD of the local player.
answered Apr 10 '18 at 08:02 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here