Smart Enemy AI | (Part 8: Player Attack & Enemy Block) | Tutorial in Unreal Engine 5 (UE5)
Ali Elzoheiry · 9,229 words · 46 min read · EN-ORIG

Below is the complete, readable transcript of Smart Enemy AI | (Part 8: Player Attack & Enemy Block) | Tutorial in Unreal Engine 5 (UE5) by Ali Elzoheiry on YouTube. Read the full text, copy any part you need, or generate a transcript for any video with our free tool.
[music] Welcome back everyone to part eight of our smart enemy AI series. Uh in this part we're going to be creating a um attack stance for our player. So we're going to have our player be able to move in this um sort of magic attack state and do magic spells like this one.
This Hadouken spell. And uh of course these spells can uh damage the enemy. Uh but we're also going to have the enemy able to uh block our attacks. Like that. Boom. So let me show you again. Oops, I missed. And again. Nice. So we're going to be creating this uh blocking state, uh this uh player attack
state, and um yeah, we'll be also adding this um uh this widget you saw here, this crosshair in the center of the screen, uh that allows me to aim my uh my projectiles. So let's get started. All right, so this is where we uh left off last time. Uh we now have a damage
system, enemies have a health bar, uh they can do hit reactions, uh and uh they can even um die. Um but so far what we've been doing is having both enemies attack each other. Um this time we'll add attacks to the player character, and we're also going to give the melee enemy the ability to
block um our attacks or any attacks, really. Uh but before we get started, let me show you the animations that I'll be using. Um so over here in the animations folder, I cleaned it up a little bit, split it by uh rifle, melee, and magic, cuz all the animations were just in one
folder, so this is a bit neater. And magic is the animations that we'll be adding to the player. So I have this magic idle, walk backwards, forwards, left, and right. Um and I also have this Hadouken attack. This is what we'll be using. Um and I created a blend space out of these movements. So, this is what the
Transcribe another video
Paste any YouTube, Instagram or TikTok link to get a free transcript.