The Magic Restock Remote
The Magic Restock Remote
Imagine you are in a big battle. You run out of ammo. Oh no! You have to walk all the way back to the shop. That takes too long!
Let's fix that. We will build a magic remote. It will teleport you to a secret shop. You can grab more items instantly. This keeps the fun going. You stay in the fight.
What You'll Learn
- How to use a Signal Remote Manager. This is like a universal remote for your island.
- How to set up a Teleporter. This moves players from one spot to another.
- How to use Vending Machines. These sell items to players.
- How to connect them with events. An event is a signal that says "Do this now!"
How It Works
Think of your island like a house with lights. You have a switch on the wall. When you flip it, the light turns on. The switch is the sender. The light is the receiver.
In Fortnite Creative, we use devices as our switches and lights.
- The Remote: You hold a special remote. It sends a signal.
- The Manager: This device listens for the signal. It says, "Hey, I heard a button press!"
- The Teleporter: When the Manager hears the signal, it tells the Teleporter to activate.
- The Shop: The Teleporter whisks you away to the shop. You grab items. Then you teleport back!
This is like a magic slide. You step on one end, and whoosh! You are at the shop.
Let's Build It
We will make a simple base. You will have a spawn area. You will have a secret shop nearby. When you press a button, you go to the shop.
First, place these items in your world:
- Spawn Point: Where players start.
- Vending Machine: Put this in a small, safe room. This is your shop.
- Teleporter: Put this inside the shop room.
- Signal Remote Manager: Place this near the shop too.
- Signal Remote: Give this to the player as an item.
Now, let's connect them. We don't need complex code yet. We use the device menus.
Step 1: Set Up the Shop Teleporter
Click on your Teleporter in the shop.
- Find the Teleporter Group. Set it to None. This means it only works via signals, not by walking into it.
- Find Teleport To. Select your Spawn Point. This is where you will go after shopping.
Step 2: Connect the Remote
Click on the Signal Remote Manager.
- Find Primary Fire. This is the main button.
- Set it to Teleport.
- Select the Teleporter device we just set up.
Now, when you press the main button on the remote, the manager tells the teleporter to work.
Step 3: Give the Remote to Players
You need a way to give players the remote.
- Place an Item Granter.
- Set it to grant the Signal Remote item.
- Set it to Grant On Player Spawn. This gives everyone a remote when they start.
Verse Code Example
Even though we used menus, let's see how this looks in Verse. Verse is the language that tells devices what to do. Here is a simple script. It connects the remote button to the teleporter.
# This is a simple Verse script for a Restock Remote
# It connects a button press to a teleport action
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
# This is our main device. It holds everything together.
restock_remote_device := class(creative_device):
# This is the remote manager. It listens for button presses.
# Connect this to your Signal Remote Manager in the UEFN details panel.
@editable
SignalManager : signal_remote_manager_device = signal_remote_manager_device{}
# This is the teleporter. It moves the player.
# Connect this to your Teleporter device in the UEFN details panel.
@editable
Teleporter : teleporter_device = teleporter_device{}
# This function runs when the game starts.
OnBegin<override>()<suspends> : void =
# We connect the "PrimarySignal" event to our handler function.
# This means: "When the button is pressed, run OnPrimaryFire."
SignalManager.PrimarySignalEvent.Subscribe(OnPrimaryFire)
# This function runs each time the primary fire button is pressed.
# It receives the agent (the player) who pressed the button.
OnPrimaryFire(Agent : agent) : void =
# This tells the teleporter to activate for the player who pressed the button.
Teleporter.Teleport(Agent)```
**What does this code do?**
* `restock_remote_device`: This is the box for our script.
* `@editable`: This lets you drag and drop real devices from your island into the script slots in UEFN.
* `SignalManager`: This is the device that hears the click.
* `Teleporter`: This is the device that moves the player.
* `OnBegin`: This runs once when the island loads.
* `PrimaryFireEvent.Subscribe(OnPrimaryFire)`: This listens for the signal. It calls `OnPrimaryFire` when you click the button.
* `Teleporter.Teleport(Agent)`: This tells the teleporter to move the specific player who pressed the button.
## Try It Yourself
Now it is your turn! Build the setup we talked about.
**Challenge:** Add a second teleporter. Make it so pressing the *secondary* button (right click) on the remote sends you to a different place, like a safe zone.
**Hint:** Look at the **Signal Remote Manager** settings again. It has a **Secondary Fire** option. You can connect that to a new Teleporter device. Just make sure the new Teleporter points to your safe zone!
## Recap
You built a Restock Remote! You learned how to use a Signal Remote Manager to listen for clicks. You connected it to a Teleporter to move players. You used Vending Machines to sell items. This system keeps players in the action. You didn't need to walk far to get supplies. Great job, coder!
## References
* https://dev.epicgames.com/documentation/en-us/fortnite/using-signal-remote-manager-devices-in-fortnite-creative
* https://dev.epicgames.com/documentation/en-us/fortnite-creative/using-signal-remote-manager-devices-in-fortnite-creative
* https://dev.epicgames.com/documentation/en-us/fortnite-creative/using-fuel-pump-devices-in-fortnite-creative
* https://dev.epicgames.com/documentation/en-us/fortnite/using-fishing-zone-devices-in-fortnite-creative
* https://dev.epicgames.com/documentation/en-us/fortnite-creative/using-item-granter-devices-in-fortnite-creative
Verse source files
- 01-device.verse · device
Turn this into a guided course
Add Restock Remote 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.