Triggering Devices and Building Game Logic with Channels
In this lesson you'll learn to
- Connect a Button device to a Verse script using Subscribe() so your code runs when a player presses the button.
- Explain what an event, a handler function, and subscribing mean using everyday game analogies.
- Use a channel_device (Transmit and ReceivedTransmitEvent) to link multiple devices together in a game logic flow.
- Build a playable island challenge where pressing a button spawns an item and fires a channel signal to trigger a second device.
🎮 What Are We Building?
Imagine a locked treasure room. A player walks up, presses a glowing button, and — boom — a weapon appears AND a door swings open! That's what you'll make today. You'll write Verse code that listens for a button press and then kicks off a whole chain of cool things.
📣 What Is an Event?
An event is like a doorbell. When someone rings it, it tells your house "hey, something happened!" In Fortnite devices, events fire automatically when something occurs in the game — like a player pressing a button or stepping on a trigger pad.
Your Verse code can listen for those doorbells. When one rings, your code wakes up and does something.
🔔 What Is Subscribing?
Subscribing means telling the game: "Hey, whenever THAT doorbell rings, call MY function."
Think of it like signing up for a pizza delivery notification. When the pizza arrives (the event), you get a text (your function runs).
The function you attach is called a handler. It's the code that "handles" what happens when the event fires.
Subscribe(YourHandlerFunction)
🧩 The Button Device: button_device
A Button device is a physical glowing button you place on your island. Players walk up and press E to interact with it.
In Verse, the button has a built-in event called InteractedWithEvent. It fires every time a player presses the button.
Here's how you hook your code to it:
MyButton.InteractedWithEvent.Subscribe(OnButtonPressed)
That one line says: "When the button is pressed, run my function called OnButtonPressed."
📡 What Is a Channel Device?
A channel device (channel_device) is like a walkie-talkie for your devices. One device talks (transmits a signal), and any other device that's listening hears it and reacts.
Transmit()— this is the "talk" button. It sends a signal out.ReceivedTransmitEvent— this is the "listen" side. Other code can subscribe to this to hear the signal.
You can chain devices together like dominoes! Button press → channel transmits → door opens. 🎉
🏗️ How to Set Up Your Devices in UEFN
Before writing code, you need to place these devices on your island:
- 🟡 Button device — the thing the player presses.
- 📦 Item Spawner device — drops a weapon or item when told to.
- 📡 Channel device — the relay that sends signals to other devices.
- 🔲 Mutator Zone or Timer device (optional, for extra challenge) — can react to the channel signal.
Tip: Use
@editablein your Verse code so you can drag-and-drop the real devices into the slots in the UEFN editor. This connects your code to the actual devices on the island!
🔑 Key Words Cheat Sheet
| Word | Plain Meaning |
|---|---|
| Event | A doorbell — something that happened in the game |
| Subscribe | Sign up to be notified when an event fires |
| Handler | The function that runs when the event fires |
| channel_device | A walkie-talkie relay that forwards signals |
| Transmit() | Sending a signal through the walkie-talkie |
| @editable | Lets you plug a real device into your code slot in the editor |
Keep going — free
You've read the intro. The rest of this lesson — the worked example, the hands-on exercise, the quiz, and the recap — is free for members. Sign in to continue and track your progress.
New here? The whole Verse Basics track is free with a free account — sign in to start.
Sources
/docs/documentation/en-us/fortnite/coding-device-interactions-in-verse /docs/documentation/fortnite/verse-api/fortnitedotcom/devices/channel_device /docs/documentation/en-us/fortnite/verse-api/fortnitedotcom/devices/channel_device /docs/documentation/en-us/uefn/coding-device-interactions-in-verse /docs/documentation/en-us/fortnite/create-your-own-device-using-verse-in-unreal-editor-for-fortnite© Biloxi Studios Inc. — original Verse Island content.
Turn this into a guided course
Add Triggering Devices and Building Game Logic with Channels 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.
🧭 The Keeper's log
Quest complete? Chart your next heading from the Creative Devices 101 expedition.