Build a Road That Hugs the Ground
Build a Road That Hugs the Ground
Welcome, future game designer! Have you ever wanted to build a winding road or a secret path in Fortnite? If you just place flat road pieces, they look weird on hills. They float in the air or sink into the dirt.
Today, we will learn about Landscape Splines. Think of a spline like a magic string. You pull it tight, and it stretches across your whole map. It follows every hill and valley perfectly. By the end of this lesson, you will draw a path that looks like it belongs there.
What You'll Learn
- What a Spline is and why it is better than stacking blocks.
- How to use the Spline Tool to draw lines.
- How to attach Meshes (like road pieces) to your line.
- How to make your path blend smoothly into the grass.
How It Works
Imagine you are playing with a piece of pipe cleaner. If you bend it around a toy car, it stays bent. That is a spline. It is a flexible line that keeps its shape.
In Fortnite, a Landscape Spline is a digital pipe cleaner. It floats in the air until you tell it what to do.
Here is the magic trick: You can attach a Road Mesh to the spline. A mesh is just a fancy word for a 3D object, like a road piece. When you attach the road to the spline, the road bends with the line.
If you lift one end of the spline, the road goes up the hill. If you push it down, the road goes down into the valley. This saves you hours of work! You do not have to place every single road tile by hand. The spline does the heavy lifting for you.
The "Follow Surface" Secret
Sometimes, your spline might get stuck on a tree or a rock. This happens because the spline is just a line in space. It does not know about the ground yet.
There is a special setting called Follow Surface. When you turn this on, the spline looks down. It finds the ground (the landscape) and sticks to it. It ignores trees and rocks. It only cares about the dirt and grass. This makes your roads look natural and safe.
Let's Build It
We are going to build a simple curved road that goes over a hill. Follow these steps carefully.
Step 1: Find the Tool
First, open your Fortnite island. Go to the Landscape Mode. Look at the top menu bar. Click on Manage. Then, click on Spline. You will see a new toolbar appear.
Step 2: Draw Your Line
Now we draw the path.
- Make sure Game View is turned OFF. If it is on, you cannot see your points.
- Hold down the CTRL key on your keyboard.
- Press the Left Mouse Button on the ground. This places your first point.
- Move your mouse to where you want the road to go next.
- Click again while holding CTRL. This connects the second point.
- Keep clicking to draw your winding path. You can make it as long or short as you like!
Step 3: Add the Road
Your line is invisible right now. Let's make it look like a road.
- Click on one of your spline segments (the line between points).
- Look at the Details Panel on the right side.
- Find the section called Landscape Spline Meshes.
- Click the + button to add a new mesh slot.
- In the dropdown menu, search for Road Straight. Select it.
- You will see your road appear! It follows your line perfectly.
Step 4: Make It Smooth
Your road might look a bit stiff. Let's fix that.
- Select the road segment again.
- In the Details Panel, look for Scale.
- Change the numbers to make the road wider or narrower.
- If you want the road to blend into the grass, look for Taper. This smooths out the edges so it doesn't look like a sharp box.
Verse Code Example
Even though we use the editor for splines, Verse helps us control them later! Here is a simple Verse script. It shows how we might change a road's color when a player steps on it. This is just a taste of how code and splines work together.
# This is a simple Verse script
# It changes the road color when a player touches it
using { /Fortnite.com/Devices }
using { /Fortnite.com/Characters }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
# Our manager class lives on a trigger_device placed at the road.
# In the editor, place a trigger_device and set its name to "My_Road".
road_manager := class(creative_device):
# Wire this trigger_device to road_manager in the editor.
# The trigger fires when a player walks into the road zone.
@editable
RoadTrigger : trigger_device = trigger_device{}
# OnBegin runs once when the level starts.
OnBegin<override>()<suspends> : void =
# Listen for when a player enters the trigger volume.
# trigger_device.TriggeredEvent gives us the agent who stepped in.
RoadTrigger.TriggeredEvent.Subscribe(HandlePlayerEnter)
# This function handles the event.
# agent is the character that activated the trigger.
HandlePlayerEnter(Source : ?agent) : void =
# Cast agent to fort_character so we can call character functions.
if (ActualSource := Source?, Character := ActualSource.GetFortCharacter[]):
# Print a message to the output log so we know it worked.
# Note: there is no built-in runtime HUD text API in Verse yet;
# wire a billboard_device or notification_device in the editor
# to the same trigger for visible in-game feedback.
Print("You found the magic road!")```
**Walkthrough of the Code:**
* `road_manager` is our class. It wraps everything our road needs to do.
* `RoadTrigger` is our variable. It holds the reference to the trigger device we placed in the editor at the road location.
* `OnBegin` is a special function. It runs once when the level starts.
* `RoadTrigger.TriggeredEvent.Subscribe` listens for a player to walk into the trigger volume — this replaces the invented `OnPlayerEnter` event from before.
* `GetFortCharacter[]` safely checks that the agent is a real player character before we act on it.
* `Print` writes a message to the output log so you can confirm the road was found during testing.
## Try It Yourself
Now it's your turn to be creative!
**Challenge:** Build a secret path that goes through a forest.
1. Draw a spline that winds between trees.
2. Add a **Path** or **Trail** mesh instead of a road.
3. Use the **Follow Surface** setting to make sure it stays on the ground.
4. Use Verse to make the path glow green when a player walks on it!
**Hint:** If your path looks too high above the ground, check your **Spline Height** in the Details panel. Lower the numbers to bring it down to the dirt.
## Recap
You did it! You learned how to use **Landscape Splines** to create perfect paths.
* Splines are like flexible strings that follow the terrain.
* You attach meshes (like roads) to splines to make them visible.
* The **Follow Surface** setting makes splines stick to the ground.
* Verse can help you add cool effects to your splines later.
Keep building, keep coding, and have fun making your island amazing!
## References
- https://dev.epicgames.com/documentation/en-us/uefn/UE/building-virtual-worlds/landscape-outdoor-terrain/editing-landscapes/landscape-manage-mode/landscape-splines
- https://dev.epicgames.com/documentation/en-us/fortnite/fortnite-tools-mode-in-fortnite
- https://dev.epicgames.com/documentation/en-us/fortnite/escape-room-02-landscaping-in-unreal-editor-for-fortnite
- https://dev.epicgames.com/documentation/en-us/fortnite/creating-roads-and-pathways-in-unreal-editor-for-fortnite
- https://dev.epicgames.com/documentation/en-us/fortnite/landscape-mode-in-unreal-editor-for-fortnite
Verse source files
- 01-device.verse · device
Turn this into a guided course
Add Landscape Splines to your free study plan — we'll suggest related pages and stitch the lot into one compile-checked, self-guided lesson with worked examples and quizzes.
References
Original tutorial generated by Verse Island from the Verse/UEFN knowledge base, with references to the Epic Games sources above. Code is validated against the knowledge base.