Quantcast
Channel: General - Epic Developer Community Forums
Viewing all articles
Browse latest Browse all 10040

Calling "Character.SetHealth()" doesn't update the UI Healthbar on a Cutom NPC

$
0
0

Please select what you are reporting on:

Creative

What Type of Bug are you experiencing?

Verse

Summary

When calling SetHealth() on a custom NPC Character (not sure if this is the case on ALL characters), the Healthbar widget doesn’t register the change. I have a workaroudn now that I do 1 dmg after calling SetHealth() which “fixes it”, but obviously not ideal.

Steps to Reproduce

  1. Create custom NPC
  2. Place NPC in level on the opposite team of the player
  3. Write a verse device that slowly heals the NPC over time with “SetHealth(Character.GetHealth() + X)”. Place it in the level
  4. Play the level and damage the NPC
  5. Observe that the UI only updates when you damage the NPC and not when you call SetHealth()

Expected Result

The UI should update when calling SetHealth().

Alternatively we should get a loigc function argument to indicate if we want to broadcast the change

Observed Result

The UI doesn’t update

Platform(s)

PC

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 10040

Trending Articles