You can try to create area and under the area create layer. Under the layer create slotai. In each slotai spawn the unit you want. Make sure you have gamemodesf component in your game more settings and activate spawn/despawn. That allows you when entering the area spawn the units and when you leave spawn them again in previous position.