In this tutorial we will add a shield variable to the replicated character. With it the player will lose health only when the shield is depleted.
1. Open the Replicated_Character blueprint and create a new float variable (default value 1.0) and make that variable replicated.
2. Add this to Event Any Damage
3. Open the Replicated_HUD widget, add a new progress bar and a binding
(Optional)
4. Duplicate the health pickup blueprint, and instead of adding health, tell it to add shield
That’s it!