So I made a blueprint where I have 2 nested for loops, but I cannot figure out why my second for loop just suddenly stops. I ran the debugger, and I can see where the red flow marker disappears when it is in the middle of processing the next iteration. I am assuming that this means the script is falling into an infinite loop, but I can not figure out why. Can someone here help me?
without seeing your script its hard to say for sure. can you take a screenshot and post it so we can see what your trying to do
I am not sure how much of the script you wanted, but I thought the bottom 2 images should explain the area in where I am having the problem.
the problem is how your basing the location to set the floor piece your constructing. essentially it looks like your creating all the floor pieces at the same location. unless theres some functionality i dont see in your get component location and rotation function. Also your screen shots are super low rez so its really hard to try to read.
Thanks Thompson. After you had mentioned about the floor pieces being created at the same location, I realized that all my variables were initially set to 0. So in other words, my floor height was set to 0.0, the number of floors was set to 0 and so on.
Also, I do not know how to improve my screenshots, as I am on a laptop and my graphics chipset barely meets UE4 requirements.
Thanks Thompson. After you had mentioned about the floor pieces being created at the same location, I realized that all my variables were initially set to 0. So in other words, my floor height was set to 0.0, the number of floors was set to 0 and so on.
Also, I do not know how to improve my screenshots, as I am on a laptop and my graphics chipset barely meets UE4 requirements.
Did you get it working? as for the screenshots really all you can do is zoom in a bit, it may require more screenshots but the added rez is worth it imo
Well, sort of. I got rid of the infinite for loop problem, but I just now need to calculate the correct forward direction, as for now the objects are pointing the wrong way. I tried marking my last post as answered, but I could not find the answer button.
Procedural Stream. if your just trying to create a floor procedurally check out the link i provided it shows the basics.