Smart Enemy AI | (Part 3: Perception) | Tutorial in Unreal Engine 5 (UE5)
Ali Elzoheiry · 6,447 words · 32 min read · EN-ORIG

Below is the complete, readable transcript of Smart Enemy AI | (Part 3: Perception) | 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 three of the Unreal Engine 5 tutorial series on smart enemy AI. Uh in this part we're going to be covering perception. So here I have an enemy that's patrolling along along a route. And if I make a noise, the enemy perceives the noise and goes to investigate.
So we're also going to be creating an investigation state. And if the enemy then sees me, I'm going to make a noise. The enemy sees me, they're going to switch to attacking automatically. Uh, now I'm also going to show you how to debug the AI perception system uh using the AI debugger so that you can
see the sight radius, the hearing radius, and so on. Um, and we're also going to be adding the uh investigation state to our behavior tree. So, let's get started. So, uh, last time this is where we left off. Uh, we have an enemy patrolling, uh, along a route, and if I press one, I
interrupt the enemy and get him to attack me. And if I press one again, uh, he stops attacking me and goes back to patrolling. Um, now we want to set up perception system so that the enemy doesn't uh I don't have to press one for the enemy to attack. The enemy just sees
me and starts attacking automatically. So, first thing we're going to do is we're going to open up our AI controller inside our enemies AI folder. And we're going to add a perception component uh to our enemy. Uh so over here in the components, uh look for AI perception. U and if you click on it, here is where
you can configure all your different uh senses. Uh so first thing we need to do is pick a dominant sense. Um, and I'm going to choose AI sense site. And dominant sense is just that if are there two conflicting senses that tell uh the enemy where something is, it will use the location of the dominant sense. Um,
Transcribe another video
Paste any YouTube, Instagram or TikTok link to get a free transcript.