How to make an enemy that peaks and Fires on the player repeatedly

Can someone educate me on how to set up an (For FPS) enemy character in Unreal Blueprints, so that (when the player enters a collision volume), it rotates to look at the player, moves to the side to get out of cover, shoots at the player, then again moves to the side to get back to cover.
It should do this repeatedly till it’s killed or it kills the player in which case the game ends.
I tried it to script this in blueprints (Included as attachment) but does’t work perfectly & does’t repeat the peaking and firing.