I have an understanding on how to spawn enemies within a certain area using a volume, however I want to achieve an effect where the player has a safe area where enemies will not spawn and cannot enter. When the player leaves this zone enemies will constantly spawn near them and attack them, this will then stop and all enemies will get killed when the player enters the safe area again.
I am currently thinking that the thing that spawns enemies would be attached to the player, and when the player ends overlap with a collision sphere in the safe house it would then start spawning enemies. However if the player is stood next to the safe house it will spawn enemies inside it.
How do I tell the spawns to not spawn within that certain area?
I am creating the game in blueprint