How can i get onhear and onsight etc(AIPerception) in c++ PLEASE help!

Thank you for replying. Ya it can be done like you said. Also the one thing that im really struggling with is Senses. I have AIPerception set up. I also have OnTargetPerceptionUpdated function. The problem is this OnTarget will be triggered for all Senses. But what i trying to do is have Ai react differently on sight and hearing. Is there a way to target specific sense?