How to create an ai enemy that shoot us.

Please Help me!.
I completed a lot of online courses on how to create fps game using ue4. everything is great but when it comes to enemy part they create a zombie enemy. But i want a enemy having a gun and shoot with the gun and give damage to the player. I want AI enemies having gun in their hands and give damage using their guns like call of duty. Please help me to complete my dream game. this will be either in blueprints or c++ .
A very Big Thanks in Advance


Try this asset from Marketplace

Is it better to give a man a fish or teach him how to fish?

Search keys are AI, Behavior Tree and Tasks.

You can look at the Lyra game in UE5
or the “shooter game” in ue4