Best way to setup enemy spawn distance minimum

Hi There

I have a basic respawn enemy system that spawns them at random in a box area. How do i make it so when the enemy respawns they are a set minumum distance from the player. So no enemy spawns say within 5 metres of the player. Have looked around and confused as the best blueprint setup for this.

Any help would be great.


Just add a ‘get distance to’ function to get the distance between the enemy and the player. Then just add a branch to only spawn enemies if the distance is more than 5 meters.

sorry I am struggling to set this up properly, have tried a range of ways. could you provide some more details like how and where to setup the get distance function and how to how to impliment the branch. Thanks for the help…