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...
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.
Did you make another viedo without the binding?
Very informative video. I learned alot. Subscribed. Thank you!
Thanks for the sub!
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?
i am working my set current health and Max Health can't connect with the WBP Health
hey everything worked only problem is the bar (health number) is not going going it stay on max health till they die
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
using double precision instead of single precision?
Is there a way to deal damage to them with an input instead of begin overlap?
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
That should work too. Hit me up at twitter/x -> olopsman and see what can be missing.
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?
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.
@@JustAnotherDangHowToChannel Tried that on other tutorials. Still doesn't work.
Show inherited variables was worth the video alone tbh
Can you make same damage system for hitting by bullet
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!!
doesnt work whats how does your attacking system work?
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.
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.