Grid spawn random static mesh issue

I’m trying to make a very simple grid to spawn some meshes but for some reason all the different types of mesh are spawning in each location instead of 1 random mesh in each location… Can anyone see what I’m doing wrong here? (i’ve tried a variety of other coding but I keep coming back to this as something I think should work but isn’t)

In seems to spawn a random mesh multiple times in each location as opposed to doing it just once per location


Hi, you have spawning logic inside you first ForLoop. Connect your ForEachLoop to “Completed” pin from the first ForLoop instead of the second one :slight_smile:

2 Likes

Can’t believe I kept overlooking that!!!
Worked perfectly :slight_smile:

2 Likes

Hehe I had the same issue so many times :slight_smile: Good luck with the project!

1 Like

You could also dramatically simplify that kind of thing:

1 Like

Oh i see! I did try to improve it by tracing for the ground but something very weird is happening


oh wait i understand, it’s not using the world location. It’s using a relative location, therefore its tracing near the center of the world not where I place the bp. I need to somehow convert the relative location to world location

got it working :slight_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.