Announcement

Collapse
No announcement yet.

Multiplayer hud problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Multiplayer hud problem

    Hey!
    I spend whole day tryin to figure it out, so hopefully some1 here is smarter then me ;s Im trying to make HUDs work in MP game. Dealing dmg works but i cant update hud correctly (when i check health with lil debug key, it shows correct numbers). On server it works just fine but on client its like delayed ? What i mean is that every shot makes changes to hud, that were supposed to be made by the one shot before. Basically first shot does nothing - and second shot does what had to be done by the first one. Same goes for pickups that give u hp
    (example: 50hp -> takes 20dmg -> 50hp -> 10hp pickup -> 30hp -> 10hp pickup -> 40hp)

    Little gallery: https://imgur.com/a/W34zCmX

    Thanks

    #2
    Most likely a case of updating the HUD before the variable has been replicated. Instead of using RPC's to update the HUD you should use RepNotify on Health and every time RepNotify is called you update the HUD.

    Comment


      #3
      Wow, that was easy, thanks mate

      Comment

      Working...
      X