How to add a shield (multiplayer)

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
mp_shield

 

3. Open the Replicated_HUD widget, add a new progress bar and a binding
mp_shield_02

mp_shield_03

 

(Optional)

4. Duplicate the health pickup blueprint, and instead of adding health, tell it to add shield
mp_shield_05

 

That’s it!

mp_shield_04