Static meshes are spawning together instead of one or the other

I have created a Blueprint class called ObjectClass which has a small array of two static meshes and randomly chooses a mesh from the array and spawns it in the target point, however it is spawning both the meshes together instead of one or the other. So in other words, it needs to spawn either the ladder OR the crate box - NOT both.

I think I’ve figured what the problem is. I had another for loop just before for a different set of spawn points (you can’t see it in the Blueprint I uploaded because it was too big to fit in one screenshot). Take a look here

When I connected the Event BeginPlay to the for loop I had in level-blueprint.png the objects spawned separately, but obviously I can only use one Event BeginPlay. How do I resolve this?

Okay, so my guess that you are running it more than once was correct. Glad that you confirmed it.

What is your current issue? I thought that you wanted to spawn all the meshes only once (random mesh at each spawn spot)?

Your blueprints are probably okay however in some screenshots they are not compiled. I assume this is not an error because I checked your solution in my sample project and everything works fine as long as ForEachLoop will be called once. Can you share your whole level blueprint? Or at least the rest of the spawning implementation? In my example I triggered spawning by pressing a key so maybe you are calling it more than once?

Yes that is correct. I have one set of spawn points for trees and another set of spawn points for workladder and crate. How do I do this?

Ok I have solved it, it’s because I didn’t set the ‘completed’ in the first for loop.