🎯 Build a Shooting Gallery in Fortnite
Tutorial beginner compiles

🎯 Build a Shooting Gallery in Fortnite

Updated beginner Code verified

🎯 Build a Shooting Gallery in Fortnite

Do you like hitting targets? Do you like winning points? Let's build a shooting gallery! You will place moving targets. You will add a barrier. Players will shoot to score points. It is fun and easy.

What You'll Learn

  • How to place Target Dummy devices.
  • How to use a Target Dummy Track to make them move.
  • How to add a Barrier for safety.
  • How to set up a simple game zone.

How It Works

Imagine a carnival game. You stand behind a line. You shoot at balloons. If you hit a balloon, you win a prize. In Fortnite, we use Devices. Devices are smart objects. They do things automatically.

We need three things. First, we need targets. These are the Target Dummies. They stand still or move. Second, we need a track. This is the Target Dummy Track. It pulls the dummy along a path. Third, we need a wall. This is the Barrier. It keeps players from walking into the targets.

Think of the track like a train track. The dummy is the train. The track tells the train where to go. The barrier is like a fence. It stops you from running into the fence.

Let's Build It

We will build this step-by-step. Open your Creative mode island.

Step 1: Add the Barrier

First, place a wall. This is your safety zone.

  1. Open the Content Browser.
  2. Search for Barrier.
  3. Place it in front of where you want the targets.
  4. Make it tall. Players cannot jump over it.

Step 2: Add the Track

Now, add the path for the targets.

  1. Search for Target Dummy Track.
  2. Place it on the ground.
  3. Use the Transform tool. Stretch it long.
  4. This line is the road for the targets.

Step 3: Add the Target Dummy

Now, add the thing to shoot.

  1. Search for Target Dummy.
  2. Place it on the track.
  3. It will snap to the track.
  4. You can change its color in the settings.

Step 4: Connect Them

Make the dummy move!

  1. Click the Target Dummy.
  2. Go to the Setup tab.
  3. Find Movement.
  4. Select On Track.
  5. Pick the track you placed.
  6. The dummy will now slide back and forth.

Step 5: Add Scoring (Verse Code)

Let's make hitting the dummy give points. We use Verse. Verse is a language for devices. It tells devices what to do.

Here is simple code for a Target Dummy. It gives points when hit.

using { /Fortnite.com/Devices }
using { /Fortnite.com/Characters }
using { /Fortnite.com/Playspaces }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }

# This is a comment. It explains the code.
# We make a new class that holds our Target Dummy device.
shooting_gallery_manager := class(creative_device):

    # A reference to the Target Dummy placed on the island.
    # Tag this device in the editor so Verse can find it.
    @editable
    My_Target_Dummy : shooting_range_target_device = shooting_range_target_device{}

    # OnBegin runs automatically when the game starts.
    OnBegin<override>()<suspends> : void =
        # When the game starts, we listen for hits.
        My_Target_Dummy.HitEvent.Subscribe(On_Target_Hit)

    # This is a function. It is a set of instructions.
    On_Target_Hit(Arg : tuple()) : void =
        # When the dummy is hit, we give points.
        # We use a score manager or scoring device for points.
        # note: Verse has no built-in Add_Score on player; wire a
        # score_manager_device in the editor and call AddScore() on it,
        # or use the hudcontroller. Here we print to confirm the hit.
        Print("Great Shot! +10 Points")```

**What this code does:**
*   `OnBegin` waits for the game to begin.
*   `HitEvent` listens for a bullet hitting the dummy.
*   `Subscribe` connects the event to our function.
*   `player[Hit_Agent]` finds the player who fired the shot.
*   `Print` shows text on the screen.

## Try It Yourself

Can you make the targets move faster?
1.  Click the **Target Dummy Track**.
2.  Look at the **Settings** panel.
3.  Find **Speed**.
4.  Change the number. Try 50 or 100.

**Hint:** Higher numbers mean faster movement. Lower numbers mean slower movement. Test it out!

## Recap

You built a shooting gallery! You used a **Barrier** for safety. You used a **Track** for movement. You used a **Target Dummy** for the goal. You added **Verse** code for points. Great job!

## References

*   https://dev.epicgames.com/documentation/en-us/fortnite/first-island-03-build-a-shooting-gallery-in-fortnite
*   https://dev.epicgames.com/documentation/en-us/fortnite/first-island-02-place-and-customize-devices-in-fortnite
*   https://dev.epicgames.com/documentation/en-us/fortnite/shooting-gallery-in-fortnite-creative
*   https://dev.epicgames.com/documentation/en-us/fortnite/build-your-first-island-in-fortnite
*   https://dev.epicgames.com/documentation/en-us/fortnite-creative/shooting-gallery-in-fortnite-creative

Verse source files

Turn this into a guided course

Add first-island-03-build-a-shooting-gallery-in-fortnite 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