How to make a repetition of the road?

I want to make a script like in this video Create a City Street in UE4 - YouTube

Hey there @Z_Kir! Welcome back to the community! So the script you’re seeing there is just a construction script that places a new static mesh instance every X units in a direction for the road. Technically you can get the same effect by creating a spline mesh, with the added bonus of being able to turn it if need be. Here’s a tutorial!

Disclaimer: One or more of these links are unaffiliated with Epic Games. Epic Games is not liable for anything that may occur outside of this Unreal Engine domain. Please exercise your best judgment when following links outside of the forums.

Thanks, but I want to make something different from the road.

Depending on your use case I could probably find you better resources, what kind of utility were you trying to make?

I want tp make an endless corridor. The best variant is to make a tool like array modifier in Blender.

Ahh like procedurally generated dungeons! I’m not aware of blender’s array modifier, but from the name it likely just makes a simple array of the objects and positions them based on bounds. So if you really wanted it to be as basic as the road tool they used here, you could just make a BP that on construct checks the count variable, then makes another instance a defined units forward. However, if you wanted something a little bit more complex, I’ve got a couple more resources!

Disclaimer: One or more of these links are unaffiliated with Epic Games. Epic Games is not liable for anything that may occur outside of this Unreal Engine domain. Please exercise your best judgment when following links outside of the forums.

Dungeon Procedural Gen series:

More basic room gen:

The problem is that I don’t understand how blueprint works.

No worries! So if you’re more of a designer and want to just generate a dungeon, there’s some prebuilt plugins available, though depending on how you want your dungeons generated you may have less control than handling it yourself. There are other free generators around, but a common one I see is Dungeon Generator (Free). The other link is more of an example to show just how in demand a good tool like this is, and is the community favorite Dungeon Architect.

Basic dungeon generation (free):

A community favorite (Very not free):

Alternatively, all the time is a good time to learn Blueprints! If you’d rather start down that path I can get you learning resources.

I still just want to make an endless road, a staircase in one direction. But learning blueprints will be also good.

Awesome! So the tutorials I referenced before are great for that still, once you get your bearings with blueprints you’ll be able to utilize it the same way! Here’s a good tutorial to get you acquainted with BP first!

Disclaimer: One or more of these links are unaffiliated with Epic Games. Epic Games is not liable for anything that may occur outside of this Unreal Engine domain. Please exercise your best judgment when following links outside of the forums.