Smart Enemy AI | (Part 5: Enemy Types) | Tutorial in Unreal Engine 5 (UE5)
Ali Elzoheiry · 5,515 words · 28 min read · EN-ORIG

Below is the complete, readable transcript of Smart Enemy AI | (Part 5: Enemy Types) | 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 five of our smart enemy AI series. And in this part, I'm going to show you how to create different enemy types. So, we're going to be creating this uh ranged enemy that has a rifle, goes around the player, attacks the player uh by yeah shooting their rifle and doing a trace.
And I'm also going to show you how uh to make sure that the enemy is always within sight so that if I go out of sight, the enemy runs to find a place where they can see me and then attack me again. And I'm also going to show you uh how to damage the enemy. So, I'm going to
damage the enemy a few times. After the enemy is damaged a few times, they go and hide and they heal. And after they heal, they come out to attack me again. Let me show you that again. I'm going to damage the enemy. They go and hide. Heal for a bit. After healing, come out and
attack again. Now, I'm also going to show you how you can get two enemies to fight each other like this. So, now we have melee enemy versus ranged enemy. And yeah, could be anyone's fight. I don't know who's going to win. All right, so let's get started. All right, so this is uh where we left off
uh last time. Uh we have a uh behavior tree for our enemy with an attack sequence and a cool down of 10 seconds. Uh let me actually change this to 5 seconds. I think 10 is a lot. Uh we have a strafe sequence and we have a find cover sequence. And this is what it
looked like. Uh the enemy can strafe around the player. The enemy will then go to attack once the cooldown's over and then continue to strafe. And if I disconnect the strafe and attack and just connect the find cover, uh the enemy before attacking will go find cover, wait there for a few seconds, and then come out to attack the
Transcribe another video
Paste any YouTube, Instagram or TikTok link to get a free transcript.