How do I set up AI perception using C++

Hey guys, I’m a final year student working on a project in unreal engine that requires me to have AI. So I have been trying to set up AI perception using C++ and I just can’t get my head around it. I have background knowledge of programming in C++ but I’m completely new to the unreal engine.

I have looked at this tutorial on AI perception here but I still don’t get it. I would really appreciate it if someone could break it down into easy to understand steps.

I made a tutorial on how to setup AI Perception. You can check it here:
You need C++ only to assign different character in different teams. The other stuff is handled by predefined components.
If you’d like you can add the components via C++, because in the tutorial I added them in the editor.

[1]: