This is how I would set up my AI controller, though you will have to get the AI controlled pawn’s transform.
On begin play, start calling the “Shoot” function every 3 seconds (should probably be a variable). Then on shoot, just create the actor with the transform (includes location and rotation). Then let the projectile class do the rest. A good example of this is in the First Person Example demo.
Keep in mind that this is really simplified and you should think about adding animation/sound in the shoot function as well.

