How to Build a Combat Damage System | Unreal Engine 5 Tutorial | Reusable and Flexible Design

68,101
0
Published 2023-05-01
Chapters
00:00 Intro
01:41 Creating Blueprint Interface
03:44 Creating Structure DamageInfo
09:40 Applying Interface to Player
11:42 Creating the Actor Component
14:48 Using the Actor Component
15:30 Implementing Heal Function
18:47 Implementing TakeDamage Function
37:25 Creating the Enemy Actor
38:45 Creating an Attack Function
44:30 Ragdoll on Death
48:05 Health Bar Widget
53:28 Use Heal Function
56:00 Outro
____________________________________________

In this Unreal Engine Game development Tutorial you will learn the following:
- How to create a flexible damage system
- How to apply it to actors in your game
- How to extend it to be able to use it for different use cases

See how I applied this Damage System to my enemy AI in this video    • Smart Enemy AI |  (Part 7:  Damage Sy...  

About me:
I've been learning game development for over a year now, I do have a background in software engineering, but I've always wanted to create my own game.

I am currently working on this 3rd person action adventure game as a hobby, but I am also trying to build a community, thus I am creating YouTube tutorials to find others who are interested in game development and design.

If you are interested in learning more or if you are interested in working together, please let me know in the comments.

Join my Discord server to chat and mingle with the community
discord.gg/AEnM4wvYzN

Checkout my other tutorial here
   • Ue5 Tutorial Energy Shield | How to C...  

#unrealengine #unrealengine5 #ue5 #gamedev #combat #blueprint #tutorial

All Comments (21)
  • @JScott-hk5bz
    Dude you might actually be one of the best teachers for unreal engine on YouTube, please don’t stop you’re a goldmine of knowledge
  • @netherworld8196
    This is a far better tutorial and you have allowed this to easily be edited for our own purposes. This is far more educational then many of the videos on yt, since your teaching us instead of telling a single way that only work with very few projects. Thank you so much.
  • @Hobcakes
    Ali, I've been using Unreal and surfing through tutorials for around 2 years now. This is no joke, your videos are the most clear, concise and well organized tutorials that I have found. They are engaging and they really help me understand what I'm actually doing as opposed to most tutorials that make me feel like I'm just copying someone's work without really expanding my knowledge. Really grateful for these, buddy.
  • @wachemowe
    Man this tutorial is Gold. I literally learned how to implement and use: - Interface - Struct - Enumeration - ActorComponent - Macros - Functions - EventDispatcher - Construction Script And more! This is beyond a Combat Damage System! Thanks for this :)
  • @aumpatel7724
    Learning Unreal for 1 year and undoubtedly the best Teacher. You make learning more interesting and meaningful.
  • @twidiegamers3854
    Another awesome tutorial! I used a different health/damage system before, but replaced it completely with this system. This one is so much more eleborate and gives such amazing options and oppertunities to play with. Absolutely amazing, thank you kindly sir!
  • @Fizziepop
    Absolutely love your tuts and your channel. I discovered your channel 2 days ago, and have begun poking through everything. Love the quality of your walkthroughs. You provide the stepping stones to unlocking the universe. Thank you much!
  • @kyle8436
    I'd been stuck on damage system for my game for ages and this helped so much. Thank you!
  • @Pizatol
    The way you teach is so clear and structured, your guides are gold, thank you sir.
  • @theindiegamedude
    Thanks for the great content as always! I jumped over here from the Smart AI series Part 7. This one is short and to the point. It's one of the best explanations of Blue Print Components, and Event Dispatchers. Great info on the Blueprint Interfaces, Structures, Enumerators, and more as well. Keep up the great work!
  • @widtho1528
    I have watched 100s of videos like yours. Hands down you are the best at explaining as you go. You give the who what when where why where applicable. Also just how you implement systems and utilize them makes it perfect for people who maybe don't want what you want but need a system in place. You have definitely earned my support. Thank you for everything you do!
  • @umpalumpa4041
    Really really good tutorial. I've been through probably 20hrs of various tutorials and they've all been great, I've learned a TON, but its hard to tell what's best/professional practice and what's surface level learning. I think this was the first one that really started digging into the more advanced methods of how to set things up and go into some detail about why doing it this way is more advantageous. Thanks for all the effort you and all these other people put in to teaching this stuff for free. Will definitely be checking out your enemy AI vids!
  • @xskodemedia746
    yes reusable and flexible design is exactly what is needed this is extremely helpful i have subscribed and liked!!! thanks a lot for this
  • @blasphire
    This man is out here teaching Game Dev Theory while teaching how to use UE, it's unreal. Solid info, Thanks for the lesson!
  • @mood3123
    Hello. Thank you for your work. From all the tutorials I've watched on youtube, you're the first one who comes with real modularity and logic. Not another tutorial that is "modular" only if you do exactly the type of game the teacher want you to do ! It's the first time I feel like I'm really progressing and understanding what I did, for real man thank you.
  • @fxclimber
    Using the interface was impressive. The lecture was both enjoyable and informative. You have my full support!
  • @liquidized106
    I saw many many tutorials for UE5, and your videos are top of the list! Easy to follow, perfectly adaptable, customizable, and you always point out the important parts. You earn lots of more followers. Great job, Ali!!
  • @ditchdiver7531
    Man I have followed a lot of videos for UE5. And I have learned more from you in this 56 min than all the rest combined.
  • @smitf231
    Fantastic tutorial! Exactly the sort of thing I've been looking for!
  • @RossieKgan
    This is the best damage system i have found so far. Thank you. You're a great teacher too. Please keep up the good work.