Let's break down how the AIPerceptionComponent works. We are going to do this both in Blueprint and C++.
The AIPerceptionComponent
AIPerceptionComponent in Blueprint
If we open our Blueprint AI Controller, we are able to add the AIPerceptionComponent like we would any other component: from the Components tab, click on Add Component and select the AIPerceptionComponent, as shown in the following screenshot:
When you select the component, you will see how it appears in the Details panel, as shown in the following screenshot:
It only has two parameters. One defines the dominant senses. In fact, AIPerceptionComponent can have more than one sense, and when it comes to retrieving the location of the target that&apos...