How would you implement a character's field of view?

I’m making a RTS game and I would like to give each character a field of view. So that, for example, if he sees an enemy, he begins following him. I’m sure that UE4 will help me with that!

Have you tried PawnSensing Component?

No, is it possibile to use it with c++?

thanks guys,i get it