How to stop spawn overlap

I have 2 actors that spawn randomly in 15 set locations. When working properly it looks like this.

When the problem occurs, it looks like this.

Hi,
but not so clear the question…when the problem occurred it only shows half of the screen?

I found a solution! I just chose to delete one of the actors when they trigger an overlap event.

Don’t destroy!
Check the other locations via sphere trace and teleport the spawned actor.

Properly you should be pre-checking prior to spawning.
Get Random spawn, is not overlapping → spawn, else pick new random.

You can literally make a spawn zone actor that has a sphere collision set to overlap the spawning class. You can then pre-check by referencing the spawn zone actor and see if it’s overlapping.

1 Like