Basic AI mechanics

I’ve been trying to add two types of AI into unreal, like an ally and a n enemy, which an enemy would stay idle until in your line of sight, then which would decide if it should move or shoot as long as your in its line of sight, and an ally would follow you and decide to move or shoot when it sees an enemy…

But unfortunately I am clueless on how to do this and no other resources seem to have what I’m looking for. Id also prefer to stick to a single character blueprint if that is possible. and I’m also having some slight trouble with using animations with AI. Thanks

well theres few ways you can do this, since its a shooting game i think you should use a behavior tree.