Oh, now I notice something about the graph! Hi you need to set a Delay timer, not set deltatime. The set Deltatime did nothing actually. Thats not how t use it.
What you have it will try to create an instance every tick, not every sec!
After looking at a tutorial, I think Add StaticMeshComponent work as well, as long as its a staticMeshComponent (Obviously).
In any case, try add a timer, creating a object every tick will crush the program, or some very bad slowdown. Maybe that’s the problem. Also you should have a limit on array size.
Also I think for ‘For each’ loop to work, the array must be at first filled with values.
If the array have a size of Zero, then I think it will not run the next execution, which may explain why it it not work.
Try instead using add & put this in last step of the node. (see the screenshot from Tom Looman Tutorial)
My suggestion to you is to do it step by step. Start simple. At first make sure you can spawn an object by a key press, Then make sure it can be stored in an array, slowly moving into the final solution you wanted.