Forloop skip after 4 iterations

You can use a ForLoopWithBreak

EDIT: Sorry, if you mean you want the loop to continue iterations (but just skip every 4th), you can just do a If (Index % 4 != 0) check before you make the call to add a wall or whatever, the reverse (Index % 4 == 0) will let you know when there should be a door/space.


I need help with procedural generation of a building (tenement).

After 4 loops I need to make a space for a door. I stopped programming 2 years ago and I’m having an issue with that.

What would be the most efficient way to do that?

Thanks for your help.

Thanks bro, it worked like a charm.