The Lava Eliminator: Kick Losers into the Pit!
Tutorial beginner

The Lava Eliminator: Kick Losers into the Pit!

Updated beginner

The Lava Eliminator: Kick Losers into the Pit!

Welcome, Creator! Do you want to make a game where the wrong choice means a fiery fall? We are going to build a "Lava Eliminator." It is a simple game where players stand on platforms. If they pick the wrong spot, they get pushed into the lava! This is super fun to watch. You will learn how to move objects and make players disappear. Let’s make some heat!

What You'll Learn

  • How to use Variables to track who is on which platform.
  • How to use Events to react when a player lands.
  • How to use Functions to move a player into the lava.
  • How to set up a Damage Volume for instant elimination.

How It Works

Imagine you are building a tower of blocks. Each block is a Prop. A Prop is any object in your game world, like a wall, a tree, or a player. In Verse, we need a way to remember which Prop is which. We use a Variable. Think of a Variable like a labeled box. You put a Prop in the box and write "Player 1" on it. Later, you can open the box and see exactly which Prop is Player 1.

We also need a trigger. This is an Event. An Event is like a doorbell. It rings when something happens. In our game, the event is "Player lands on platform." When the doorbell rings, we check if the player is in the wrong spot. If they are, we call a Function. A Function is a set of instructions. Think of it like a recipe. The recipe says "Pick up player, fly them up, drop them in lava."

Finally, we need the lava. We use a Damage Volume. This is an invisible box. If a player touches it, they lose. We set it to "Elimination." This means they are out of the game instantly. No health bar, just poof! They are gone.

Let's Build It

First, place three Hover Platforms in a row. These are your choices. Place a Damage Volume below them. This is the lava pit. Now, we write the Verse code. This code tells the game what to do when a player lands.

# This is our script for the Lava Eliminator
using { /Fortnite.com/Devices }
using { /UnrealEngine.com/Temporary/SpatialMath }

# We define a function called "Eliminate"
# This function takes a Player as an input
Eliminate := func(player: Player):
    # This line tells the player they are eliminated
    player.Eliminate()
    # This line plays a sound effect (optional)
    player.PlaySound("Elimination_Sound")

# This is our Event
# It happens when a player lands on a device
On_Land := func(device: Device, player: Player):
    # Check if this is the WRONG platform
    # We use a Variable to remember the correct platform
    if (device != Correct_Platform):
        # Call the Eliminate function
        Eliminate(player)
        # Also, hide the wrong platform so it looks like it broke
        device.Hide()

# We need to know which platform is correct
# This is a Constant. It never changes.
Correct_Platform := GetDevice("Platform_1")

# Connect the event to the devices
# When any platform is landed on, run On_Land
On_Land_Event := On_Land

Let’s walk through this code. First, we import our tools. These are the libraries that let us talk to Fortnite devices. Next, we define the Eliminate function. This is our recipe. It tells the player to leave the game. Then, we define the On_Land event. This is our doorbell. It checks if the device the player landed on is the correct one. If it is not, it calls the Eliminate function. Finally, we set the Correct_Platform. This is our Constant. It is the safe spot. We connect the event so it watches all platforms.

Try It Yourself

Now it is your turn! Try to add a timer. Make the platforms disappear one by one. This will make the game harder. Here is a hint: look for a Timer Device in the UEFN editor. You can connect its "Finished" output to a function that hides the next platform. Can you make all platforms disappear except one? That is the final challenge!

Recap

You built a Lava Eliminator! You used Variables to remember the safe spot. You used Events to detect when a player lands. You used Functions to eliminate the losers. And you used a Damage Volume for the lava. Great job, Creator!

References

  • https://dev.epicgames.com/documentation/en-us/fortnite/squid-game-multiplayer-skill-checks-in-unreal-editor-for-fortnite
  • https://dev.epicgames.com/documentation/en-us/fortnite/squid-game-create-voting-opportunities-in-unreal-editor-for-fortnite
  • https://dev.epicgames.com/documentation/en-us/fortnite-creative/create-a-parkour-elimination-race-in-fortnite-creative
  • https://dev.epicgames.com/documentation/en-us/fortnite-creative/lava-bounce-in-fortnite-creative
  • https://dev.epicgames.com/documentation/en-us/fortnite/create-a-parkour-elimination-race-in-fortnite-creative

Verse source files

Turn this into a guided course

Add Throw losers into lava 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.

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.

Comments

    Sign in to vote, comment, or suggest an edit. Sign in