Distance based spawning