Upgrade Your Ride: The Vehicle Mod Box Spawner
Upgrade Your Ride: The Vehicle Mod Box Spawner
Do you like fast cars? Do you like making them stronger? In Fortnite Creative, you can build a garage where players fix their cars and add cool upgrades.
We will use a special device called the Vehicle Mod Box Spawner. It is like a magic vending machine for car parts. When a player drives into it, their car gets better!
What You'll Learn
- How to place the Vehicle Mod Box Spawner device.
- How to pick which upgrades players get.
- How to connect it to a vehicle like an SUV.
- How to test your upgrade garage.
How It Works
Imagine you are at a real car shop. You drive your beat-up truck in. The mechanic looks at it. Then, they give you a new turbo engine. Your truck is now faster!
The Vehicle Mod Box Spawner does this in your game.
- The Device: This is the machine that holds the upgrades.
- The Box: When a player hits the device, a box appears.
- The Mod: The box contains a part, like armor or better tires.
- The Upgrade: When the player drives over the box, the car gets the part.
It is very simple. You do not need code to make this work. You just need the right settings in the device menu.
Picking Your Upgrades
Not all cars can take all parts. For example, a big SUV can take heavy armor. A small sports car might not.
When you set up the device, you choose the Vehicle Type. This tells the game which cars can use the upgrades. You also choose the Mod Type. This is the part itself.
Think of it like a recipe. You need the right ingredients for the right cake. You cannot put chocolate chips in a lemon cake if you do not want them!
Let's Build It
Let's build a simple "Upgrade Station." We will use an SUV because they are tough and look cool.
Step 1: Place the Spawner
- Open your island in UEFN.
- Go to the Devices tab.
- Search for Vehicle Mod Box Spawner.
- Place it on the ground. Put it in a nice spot, like a garage or a pit stop.
Step 2: Set the Vehicle Type
- Click on the device you just placed.
- Look at the Details panel on the right.
- Find the setting called Vehicle Type.
- Select SUV. This means only SUVs will work with this machine.
Step 3: Pick a Mod
- Find the setting called Mod Type.
- Click the dropdown menu.
- Choose Armor Plating. This makes the car stronger against hits.
Step 4: Test It
- Place an SUV Spawner nearby.
- Hit Play in UEFN.
- Spawn the SUV.
- Drive the SUV into the Vehicle Mod Box Spawner.
- Watch a box appear!
- Drive over the box.
- Your SUV now has armor!
Here is how the logic looks in Verse code. This code is for the device itself. It is simple because the device does the hard work.
# This code sets up the upgrade machine.
# It uses the Fortnite Devices library.
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
# We declare a creative_device class that holds our upgrade machine.
# In UEFN, you wire 'UpgradeMachine' to a placed Vehicle Mod Box Spawner
# in the Details panel — you do not construct devices in code.
upgrade_station := class(creative_device):
# Declare a reference to the Vehicle Mod Box Spawner placed on the island.
# Wire this in the UEFN Details panel to your placed device.
@editable
UpgradeMachine : vehicle_mod_box_spawner_device = vehicle_mod_box_spawner_device{}
# OnBegin runs automatically when the game session starts.
# This is where we turn the machine on.
OnBegin<override>()<suspends> : void =
# Enable the device so it works in the game.
# This turns the machine on.
# Note: VehicleType and ModType are configured in the UEFN
# Details panel (set to SUV and Armor Plating respectively),
# because the Verse API does not expose property setters for them.
UpgradeMachine.Enable()
Walkthrough:
using { /Fortnite.com/Devices }: This brings in the tools for devices.using { /Verse.org/Simulation }: This brings increative_deviceandOnBegin.upgrade_station := class(creative_device): This creates a Verse device class you can place on the island.@editable: This lets you wireUpgradeMachineto your placed spawner in the UEFN Details panel.vehicle_mod_box_spawner_device{}: This is the real Verse type for the spawner device.OnBegin<override>()<suspends> : void: This runs your setup code when the session starts.Enable(): This starts the machine.- VehicleType and ModType (such as SUV and Armor Plating) are set in the UEFN Details panel on the placed device, not through Verse property setters, because the API does not expose writable fields for them at runtime.
Try It Yourself
You built a basic upgrade station. Now, let's make it more fun!
Challenge: Add a second Vehicle Mod Box Spawner. Make it give Nitro Boost instead of armor. Make it work for Sports Cars only.
Hint:
- Place a second device next to the first one.
- Change the Vehicle Type to Sports Car.
- Change the Mod Type to Nitro Boost.
- Test it with a Sports Car!
Did it work? Great job! You are now a car mechanic in Fortnite Creative.
Recap
- The Vehicle Mod Box Spawner gives players upgrades for their vehicles.
- You must set the Vehicle Type so only the right cars use it.
- You must set the Mod Type to choose the part.
- Players drive into the device to get a box, then drive over the box to apply the upgrade.
References
- https://dev.epicgames.com/documentation/en-us/fortnite/using-vehicle-mod-box-spawner-devices-in-fortnite-creative
- https://dev.epicgames.com/documentation/en-us/fortnite/vehicle-mod-box-spawner-device-design-examples-in-fortnite
- https://dev.epicgames.com/documentation/en-us/fortnite-creative/using-devices-in-fortnite-creative
- https://dev.epicgames.com/documentation/en-us/fortnite/using-suv-spawner-devices-in-fortnite-creative
- https://dev.epicgames.com/documentation/fortnite/verse-api/fortnitedotcom/devices/vehicle_mod_box_spawner_device
Verse source files
- 01-device.verse · device
Turn this into a guided course
Add using-vehicle-mod-box-spawner-devices-in-fortnite-creative 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.