Adjust spawn on x or y

SoulRunner
Tue, 06 Feb 2018 21:10:14 +0000
World Creation

currently i have a number of set spawn points around a level and am spawning all enemies from these spawns. i have it set to ajdust the spawn if it collides but this is expectantly causing adjustment on the z axis as well. i would like to restrict this so it can only adjust on the x and y as the game is from the top down shooter. Any ideas on how i can achieve this? Still quite new to UE4 overall i would say.
I have been using the normal Spawn Actor from Class node for this and spawning them on a target point.

Here is an image of the adjustment somewhat working in this corner however the yellow boxes in the top left have still spawned inside each other despite collision. (Yellow box in bottom right is out of map)

Here the boxes have spawned on the z axis and this both cannot hit the player and the player cannot hit it as it is too high up, spawning above the first box.

Lastly here is a screen of a number of enemies spawning just under the map due to adjustment on the z axis again.

6 posts - 1 participant