Announcement

Collapse
No announcement yet.

Enemy health update trouble

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

    Enemy health update trouble

    While I was working on a tutorial. I was having trouble with my enemy updating it's health every time the Attack Trace would hot the enemy after the first hit. I can see the Attack Trace is hitting the enemy because I see yellow check marks indicating it is making contact but my enemy health is still not updating after the first hit.

    A link to the YouTube tutorial is below:
    https://youtu.be/fHo7vywF7yw

    A video and images showing the problem can be seen here:
    https://photos.app.goo.gl/QstMdFQxr4TbrSdZ6
    Last edited by DinoRSmith; 07-22-2020, 12:32 PM.

    #2
    Did you set up the Take Any Damage?

    The way that works for me is to BIND the enemy health variable to the enemy widget in a function in the umg widget.

    Set a take damage function in your enemy BP and update the health from the Enemy BP, then the UMG updates itself from the bind.

    check this out:
    https://www.youtube.com/watch?v=Tcz8D8uGdDs
    Last edited by MindfieldsTech; 07-22-2020, 01:00 PM.

    Comment

    Working...
    X