How To Build an Enemy Health and Damage System in Unreal Engine

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ก.ค. 2023
  • Welcome back to the channel where I make howto videos from subjects like mac tips, backend, swift, salesforce and game development.
    This is another unreal engine tutorial.
    In this video we are going to learn how to build an enemy health and damage system. In the last video we I showed a version of the player’s health and damage system. In this HowTo we are building one for the enemy.
    I’m using some assets from the marketplace. If you want to follow along you can grab assets from the marketplace Goblin warrior: Modular .
    Let’s go over how to build this.
    Version used: Unreal Engine 5.2.1
    Buy Me Coffee
    buymeacoffee.com/pauloorquillo
    Social
    Twitter/X: / olopsman
    Shot with Sony ZV-E10
    amzn.to/3uVzPQt
    Sigma 16mm f/1.4 DC DN
    amzn.to/3AgH1d1
    Rode MicroVideo Microphone
    amzn.to/3ccVRYR
    SanDisk 128GB Extreme PRO
    amzn.to/3RF9gZD
    My Workstation Setup
    Macbook Pro 16 inch M1 Pro
    amzn.to/3OdBqb7
    Samsung 28-Inch 4K UHD Led-Lit Monitor
    amzn.to/3Od1t27
    USB C to HDMI Cable 4K
    amzn.to/3REVpBe
    Apple Magic Keyboard with Touch ID and Numeric Keypad
    amzn.to/3Pwm6HF
    Skillshare Referral
    share.skillshare.com/pauloorq...

ความคิดเห็น • 22

  • @JustAnotherDangHowToChannel
    @JustAnotherDangHowToChannel  10 หลายเดือนก่อน +5

    One thing to note that binding the percentage is a bit expensive as it fires every tick, I might create another video to show how to PUSH health stats from character to UI instead.

    • @Ron_Barel
      @Ron_Barel 22 วันที่ผ่านมา

      Did you make another viedo without the binding?

  • @jcd302
    @jcd302 8 หลายเดือนก่อน

    Very informative video. I learned alot. Subscribed. Thank you!

  • @coltonkearschner9593
    @coltonkearschner9593 3 หลายเดือนก่อน

    Is there a way that I can make the damage delt a variable that I can modify rather than something hard coded into apply damage?

  • @user-tu5pi3lg5k
    @user-tu5pi3lg5k 3 หลายเดือนก่อน +2

    i am working my set current health and Max Health can't connect with the WBP Health

  • @phatboionyxx8516
    @phatboionyxx8516 4 หลายเดือนก่อน

    hey everything worked only problem is the bar (health number) is not going going it stay on max health till they die

  • @SilverSkylark
    @SilverSkylark 8 หลายเดือนก่อน +1

    Fantastic video, super informative. I'm getting a compilation error though:
    "failed building connection with 'Convert Float (double-precision) to Integer' at float * float" at the multiply node
    I'm pretty sure I followed along with you :) I appreciate any help

    • @finesseandstyle
      @finesseandstyle 6 หลายเดือนก่อน

      using double precision instead of single precision?

  • @striderhiryu6085
    @striderhiryu6085 2 หลายเดือนก่อน

    Is there a way to deal damage to them with an input instead of begin overlap?

  • @lukasbraithwaite393
    @lukasbraithwaite393 11 หลายเดือนก่อน

    hi how's it going I tried to make the BP_first person projectile the other actor when casting but cant seem to get it to work would there be any way you could help me with a solution

    • @JustAnotherDangHowToChannel
      @JustAnotherDangHowToChannel  11 หลายเดือนก่อน

      That should work too. Hit me up at twitter/x -> olopsman and see what can be missing.

  • @ichigocolgate6735
    @ichigocolgate6735 10 หลายเดือนก่อน

    hey! thanks so much for the video, it worked, but i want the gun projectile to kill the enemy, so how do i make the projectile damage the enemy and not the player?

    • @JustAnotherDangHowToChannel
      @JustAnotherDangHowToChannel  10 หลายเดือนก่อน

      instead of collision overlap on the enemy, I would create a projectile actor and have a collision on it, then on projectile overlap, check if it hit any actor then apply damage.

    • @ltraltier6009
      @ltraltier6009 9 หลายเดือนก่อน +1

      @@JustAnotherDangHowToChannel Tried that on other tutorials. Still doesn't work.

  • @saigerakoski9912
    @saigerakoski9912 4 หลายเดือนก่อน +1

    Show inherited variables was worth the video alone tbh

  • @rohanparmarscience
    @rohanparmarscience 2 หลายเดือนก่อน

    Can you make same damage system for hitting by bullet

    • @HunterFoy
      @HunterFoy หลายเดือนก่อน

      try to change the "cast to ______" to your projectile instead of your character. Then when your projectile starts to overlap ("on component begin overlap") it will damage. good luck!!

  • @dfgffdvfvvf7909
    @dfgffdvfvvf7909 9 หลายเดือนก่อน

    doesnt work whats how does your attacking system work?

    • @JustAnotherDangHowToChannel
      @JustAnotherDangHowToChannel  9 หลายเดือนก่อน

      this prototype is just on a simple third person character actor overlap basic attack system... though this can be extended by replacing actor projectiles or weapons overlap to make the damage.

  • @Tech-Synthetic
    @Tech-Synthetic 24 วันที่ผ่านมา

    You should really remove the keyboard and mouse sounds from the background.. makes it unwatchable for a large amount of people.. it is very annoying and distracting.