Spawn bullet from character which auto target closest enemy in range.

Hi all,

After years and years I am finally working on a wave survival game.

Am a bit older and not that good at Unreal yet but giving it a go.

Question:

How can I use Blueprints to let a projectile spawn from the character itself (so not a gun) without an input action and have it auto target the closest enemy actor in range? Preferably it should shoot like 5 times and have a cooldown of a few seconds and fire again. (I will work on upgrades which increase bullet speed, increased shots etc at a later stage).

Edit: I know how to create the “spawn projectile” and place it on the caracter just the other parts.

Thank you in advance,

Wrench