AI system

Hello, I need help with creating an AI everything is working fine but I want to make it so that when you look at the AI you take damage. I’m doing it with blueprints.