VerseIsland
Feed Learn Leaderboard Guides Reference Explore Search Docs Verse Library
Sign in
Feed Learn 📖 Codex Leaderboard Guides Reference Explore Search Docs Verse Library
Verse Library › Player
Browse Verse Library

Library

Devices 634
  • Devices166
  • Triggers & Logic117
  • UI & HUD41
  • Audio39
  • Items & Inventory29
  • Events28
  • Scoring & Objectives24
  • Spawning19
  • Classes & Interfaces18
  • Game Modes16
  • Props & Meshes13
  • Variables & Mutability12
  • Modules & Structure11
  • Player Management11
  • Round Flow9
  • Tutorials7
  • Animation6
  • Functions6
  • Getting Started6
  • Teams & Classes6
  • Concurrency5
  • Debugging5
  • NPCs & AI5
  • VFX & Particles5
  • Cameras4
  • Arrays & Maps3
  • Control Flow3
  • Structs & Enums3
  • Syntax & Types3
  • Cinematics2
  • Persistence2
  • Scene Graph2
  • Building1
  • Other1
  • Physics1
  • Publishing & Islands1
  • Reference1
  • Templates1
  • Vehicles1
  • Weapons1
Verse Language 257
  • Control Flow35
  • Functions27
  • Arrays & Maps25
  • Classes & Interfaces22
  • Variables & Mutability22
  • Concurrency21
  • Syntax & Types18
  • Modules & Structure12
  • Debugging8
  • Devices8
  • Events7
  • Player Management6
  • Structs & Enums6
  • Triggers & Logic6
  • Failure & Options4
  • Game Modes4
  • UI & HUD4
  • Getting Started3
  • Round Flow3
  • Scene Graph3
  • Spawning3
  • Reference2
  • Templates2
  • VFX & Particles2
  • Animation1
  • Best Practices1
  • Cameras1
  • Props & Meshes1
Materials/VFX 154
  • Triggers & Logic27
  • UI & HUD17
  • Devices16
  • VFX & Particles16
  • Game Modes8
  • Props & Meshes8
  • Scoring & Objectives8
  • Items & Inventory7
  • Arrays & Maps5
  • Events4
  • Animation3
  • Cinematics3
  • Classes & Interfaces3
  • Control Flow3
  • Modules & Structure3
  • Round Flow3
  • Spawning3
  • Concurrency2
  • Functions2
  • Reference2
  • Scene Graph2
  • Syntax & Types2
  • Variables & Mutability2
  • Getting Started1
  • Persistence1
  • Player Management1
  • Structs & Enums1
  • Tutorials1
General 153
  • Devices22
  • Events20
  • Triggers & Logic20
  • Classes & Interfaces10
  • Variables & Mutability8
  • Round Flow6
  • Scoring & Objectives6
  • UI & HUD6
  • Functions5
  • Player Management5
  • Game Modes4
  • Getting Started4
  • Props & Meshes4
  • Control Flow3
  • Syntax & Types3
  • VFX & Particles3
  • Arrays & Maps2
  • Best Practices2
  • NPCs & AI2
  • Other2
  • Physics2
  • Scene Graph2
  • Spawning2
  • Structs & Enums2
  • Tutorials2
  • Building1
  • Cameras1
  • Cinematics1
  • Failure & Options1
  • Items & Inventory1
  • Teams & Classes1
Player 133
  • Player Management22
  • Teams & Classes18
  • Classes & Interfaces12
  • Devices11
  • Triggers & Logic9
  • Events8
  • Persistence7
  • Arrays & Maps6
  • Game Modes5
  • Round Flow4
  • Functions3
  • Getting Started3
  • Items & Inventory3
  • Modules & Structure3
  • Concurrency2
  • Control Flow2
  • Debugging2
  • Props & Meshes2
  • Scoring & Objectives2
  • Spawning2
  • Structs & Enums2
  • Physics1
  • Reference1
  • UI & HUD1
  • Variables & Mutability1
  • Weapons1
Building & Props 131
  • Variables & Mutability15
  • Props & Meshes13
  • Triggers & Logic13
  • Classes & Interfaces10
  • Devices10
  • UI & HUD10
  • Events7
  • Teams & Classes7
  • Functions6
  • Animation5
  • Building5
  • VFX & Particles5
  • Structs & Enums4
  • Control Flow3
  • Game Modes3
  • Items & Inventory3
  • Round Flow3
  • Scene Graph3
  • Concurrency2
  • Reference2
  • Arrays & Maps1
  • Modules & Structure1
NPCs & AI 76
  • NPCs & AI34
  • Spawning7
  • Animation6
  • Variables & Mutability5
  • Classes & Interfaces3
  • Debugging3
  • Game Modes3
  • UI & HUD3
  • Audio2
  • Concurrency2
  • Props & Meshes2
  • Devices1
  • Functions1
  • Getting Started1
  • Reference1
  • Triggers & Logic1
  • VFX & Particles1
Spawning 73
  • Spawning31
  • Concurrency6
  • Events6
  • Vehicles5
  • Player Management4
  • Props & Meshes4
  • Items & Inventory3
  • Teams & Classes3
  • Devices2
  • Functions2
  • Round Flow2
  • Scene Graph2
  • Control Flow1
  • Scoring & Objectives1
  • Triggers & Logic1
Cinematics 71
  • Cameras17
  • Cinematics15
  • Devices11
  • Audio5
  • Animation4
  • Triggers & Logic4
  • Functions2
  • Game Modes2
  • Templates2
  • UI & HUD2
  • Classes & Interfaces1
  • Concurrency1
  • Control Flow1
  • Debugging1
  • Items & Inventory1
  • Modules & Structure1
  • Scene Graph1
UI 57
  • UI & HUD34
  • Devices5
  • Scoring & Objectives4
  • Classes & Interfaces3
  • Round Flow2
  • Scene Graph2
  • Arrays & Maps1
  • Functions1
  • Getting Started1
  • Reference1
  • Structs & Enums1
  • Triggers & Logic1
  • Variables & Mutability1
Scene Graph 40
  • Scene Graph9
  • Items & Inventory8
  • Classes & Interfaces3
  • Events3
  • Props & Meshes3
  • Reference2
  • Arrays & Maps1
  • Building1
  • Control Flow1
  • Debugging1
  • Functions1
  • Modules & Structure1
  • Player Management1
  • Structs & Enums1
  • Syntax & Types1
  • Triggers & Logic1
  • UI & HUD1
  • VFX & Particles1
Vehicles 38
  • Spawning12
  • Devices7
  • Vehicles7
  • Props & Meshes4
  • Game Modes2
  • Failure & Options1
  • Items & Inventory1
  • Reference1
  • Teams & Classes1
  • Tutorials1
  • VFX & Particles1
Tutorials 37
  • Game Modes6
  • Triggers & Logic5
  • Classes & Interfaces4
  • Events4
  • Props & Meshes3
  • Building2
  • Devices2
  • Items & Inventory2
  • Scoring & Objectives2
  • Animation1
  • Arrays & Maps1
  • Cameras1
  • Concurrency1
  • Physics1
  • Player Management1
  • Structs & Enums1
Weapons 30
  • Devices6
  • Game Modes6
  • Weapons4
  • Items & Inventory3
  • Scoring & Objectives3
  • Spawning2
  • Teams & Classes2
  • Best Practices1
  • Classes & Interfaces1
  • Functions1
  • Triggers & Logic1
Items 28
  • Items & Inventory23
  • Devices2
  • Triggers & Logic2
  • Spawning1
Assets 20
  • Modules & Structure6
  • Arrays & Maps3
  • Functions3
  • Scene Graph2
  • Best Practices1
  • Devices1
  • Events1
  • Failure & Options1
  • Physics1
  • Variables & Mutability1
Animation 19
  • Animation9
  • Variables & Mutability4
  • Devices1
  • Props & Meshes1
  • Reference1
  • Scene Graph1
  • Syntax & Types1
  • Tutorials1
Release Notes 17
  • Classes & Interfaces5
  • Modules & Structure3
  • Concurrency2
  • Control Flow2
  • Variables & Mutability2
  • Debugging1
  • Devices1
  • Items & Inventory1
Input & Controls 16
  • Functions3
  • Control Flow2
  • Syntax & Types2
  • UI & HUD2
  • Animation1
  • Arrays & Maps1
  • Cinematics1
  • Debugging1
  • Devices1
  • Events1
  • Reference1
Publishing 8
  • Control Flow5
  • Arrays & Maps1
  • Devices1
  • Syntax & Types1
Audio 7
  • Audio5
  • UI & HUD2
Landscape 7
  • Other4
  • VFX & Particles2
  • Scene Graph1
Persistence 6
  • Structs & Enums2
  • Items & Inventory1
  • Persistence1
  • Publishing & Islands1
  • Variables & Mutability1
Physics 5
  • Syntax & Types3
  • Classes & Interfaces1
  • Devices1
Creator Economy 3
  • Modules & Structure1
  • Other1
  • Publishing & Islands1
Discovery 3
  • Devices1
  • NPCs & AI1
  • Structs & Enums1
Editor & Project 3
  • Other1
  • Props & Meshes1
  • Tutorials1

HuntervsRunners Team Setup

Module — 2 files
These files compile together (same module folder).
Team_Setter_Device.verse
using { /UnrealEngine.com/Temporary/Diagnostics }
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /Fortnite.com/FortPlayerUtilities }

# Team Splitter Game Modes - HuntervsRunners - Red vs Blue Style Game Team Setup
# Building Block Snippet


# Author: Dragon (SAC YO ITS DRAGON)
# Website: https://dragonstudio.pro (under construction)
# Service Support Discord: https://discord.gg/7VYMBaCZxY
# Get Your Own FortniteCreative ChatGPT AI Assistant! With FortniteCreative+GPT
# https://chat.openai.com/g/g-JiEciihGH-fortnitecreative-gpt
# Join a community of 10k daily users


# This Snippet is best for Beginner to Intermediate Verse Users
# If used in a project, please provide credit and share this snippet with others 
# if it helped you.


# ABOUT THIS CODE
# This is game mode that splits teams equally. Great for Red vs 
# Blue, Hunters vs Runners, etc! Teams are set to split once the    
# pregame timer runs out. Feel free to add to this code to complete 
# your game. Any credit provided is appreciated!

#DEVICES NEEDED FOR START UP 
# Timer Device
# Player Counter 
# 2 Sets of Player Spawn Pads 
#   1 set in Pregame Area- set to Pregame Only - Team Any
#   1 set in each Game area for each team - set to GamePlay Only - Make sure to set the team index for each
# 2 Teleporters - One for team 1 and One for team 2
# 2 Team Inventory and Settings Devices 
#   - 1 for Team 1 - (Name Your Team)
#   - 1 for Team 2 - (Name Your Team)

# Use Event Binding for these Devices 
#  2 Hud Message Devices ( Pregame )
#   - 1 to Show a message that states: Not enough Players to Start - when count fails
#   - 1 to  Show a message that states : Game Starting - when count succeeds 


# -IMPORTANT-
# Island Settings 

# Max Players : Any amount you want, as long as it is an even number
# Team Index: 2
# Team Size: Dynamic
# Default Class Identifier: No Class
# Join in Progress : Spawn
# Spawn Location : Spawn Pads 
# Post Game Spawn Location: island start
# If you do not want players to see their teams when game starts, uncheck Display Scoreboard 
# Display Scoreboard: unchecked   



# EVENT BINDING OPTION
# If you prefer event binding, please review my tutorial on how to do that here: 
# https://dev.epicgames.com/community/learning/tutorials/qjx3/fortnite-how-to-make-a-hunter-vs-runners-game-mode-event-binding



# CREDITS/ATTRIBUTIONS
# This code uses elements from Epic Multiplayer Balancing : https://dev.epicgames.com/documentation/en-us/uefn/team-multiplayer-balance-in-verse



Team_Setter_Device := class(creative_device):

    @editable var PregameTimer : timer_device = timer_device{}
    @editable var PregameCounter : player_counter_device = player_counter_device{}
    @editable var HudPregame : hud_controller_device = hud_controller_device{}
    @editable var HudGameStart : hud_controller_device = hud_controller_device{}


    #Create an array for Game Start Teleporters. Be sure to assign each based on the Team Index
    @editable var Teleporters : [] teleporter_device = array{}

    # Holds the teams found with GetTeams()
    var Teams : []team = array{}

    OnBegin<override>()<suspends> : void =
        #Let's Compare Players to Target
        PregameCounter.CompareToTarget()
        #When a Count Succeeds Start the Pregame Timer 
        PregameCounter.CountSucceedsEvent.Subscribe(StartPregameTimer)
        Print("Searching for Players")

    StartPregameTimer() : void=
        PregameTimer.Start()
        PregameTimer.SuccessEvent.Subscribe(SplitTeams)

    SplitTeams(Agent : ?agent) : void=
            set Teams = Self.GetPlayspace().GetTeamCollection().GetTeams()
            AllPlayers := GetPlayspace().GetPlayers()
            #Subscribe to PlayerAddedEvent to allow team rebalancing when a new player joins the game
            Self.GetPlayspace().PlayerAddedEvent().Subscribe(OnPlayerAdded)
            Print("Beginning to balance teams")
            BalanceTeams()
            Print("Teleporting Players to Game Start Positions")
            TeleportPlayersToStartLocations()
            #Lets Disable The Player Counter Since Players will no longer be in the Pregame
            PregameCounter.Disable()
            

    # --IMPORTANT--
    # This is a neverending Hunters vs Runners Game. So lets keep players balanced even when the game is running.
    # Be sure to insert Player Spawner Pads in the Hunter Section and Runner Section with the appropriate Team Indexes 
    # Set these Spawn Pads to Enabled Phase: Gameplay Only

    OnPlayerAdded(InPlayer : player) : void =
        Print("A new Player joined, assigning them to a team!")
        BalanceTeams()
        TeleportPlayersToStartLocations()            

    <#
    For each player, find the number of players of the team they're on. Iterate through the
    list of teams and assign them to the team with the least amount of players, or their
    starting team in case of ties.
    #>

    BalanceTeams() : void =
        AllPlayers := GetPlayspace().GetPlayers()
        for (TeamPlayer : AllPlayers, CurrentTeam := GetPlayspace().GetTeamCollection().GetTeam[TeamPlayer]):
            # Assign Players to a new team if teams are unbalanced
            var TeamSize:int = 0

            if(TeamSize = GetPlayspace().GetTeamCollection().GetAgents[CurrentTeam].Length):
                Print("Size of this player's starting team is {TeamSize}")

            SmallestTeam : ?team = FindSmallestTeam(TeamSize)
            if (TeamToAssign := SmallestTeam?, GetPlayspace().GetTeamCollection().AddToTeam[TeamPlayer, TeamToAssign]):
                Print("Attempting to assign player to a new team")

    FindSmallestTeam(CurrentTeamSize : int) : ?team =
        var SmallestTeam : ?team = false
        var TeamSize : int = CurrentTeamSize

        <#
        For each team Team, get the number of players on that team. If it has less players than SmallestTeam,
        set SmallestTeam to Team and update TeamSize to the number of players on the new Team
        #>

        for(Team : Teams, CandidateTeamSize := GetPlayspace().GetTeamCollection().GetAgents[Team].Length, TeamSize > CandidateTeamSize):
            set SmallestTeam = option{Team}
            set TeamSize = CandidateTeamSize
            Print("Found a team with less players: {CandidateTeamSize}")
        return SmallestTeam 

    TeleportPlayersToStartLocations():void=
        for:
            TeamIndex -> PlayerTeam:Teams 
            TeamPlayers := GetPlayspace().GetTeamCollection().GetAgents[PlayerTeam]
            TeamTeleporter := Teleporters[TeamIndex]
            Transform := TeamTeleporter.GetTransform()
        do:
            for(TeamPlayer:TeamPlayers):
                TeamPlayer.Respawn(Transform.Translation, Transform.Rotation)
file_2.verse
# This is not a verse file
# This is only used to display Device Settings 


# Pregame Player Counter 
# Make sure to use zone and fit this to your   # pregame area

#All Options 
# Compare Player Count : Equal to
# Target Player Count : 2 Players 
# Compare at Game Start : No
# Compare on Count Change: Yes
# Transmit on Player Counted/Removed : Signal  # Only
# Transmit for On Compare Result Change: Last
# Instigator 

#EVENTS 
# On Count Succeeds Send Event To:
#   Hud Message Device Game Starting : Show
#   Hud Message Device Need Two Players to 
#   Start: Hide
# On Count Fails
#  Hud Message Device Need Two Players to Start: Show  


# PREGAME TIMER 
# This can be set to how ever long you want your players to wait before the game starts. 
# All events managed by Verse Device

# TELEPORTERS 
You need one teleporter set to a team index of 1 and another for a team index of 2

# Gameplay Spawners
# You need a second set of player spawners set to Gameplay Only, team any - placed inside a holding area for players who spawn while the game is running. The verse device will assign them to whichever team has the least number of players and teleport them. 


# HANDLING ELIMINATIONS
# When Players are teleported to their teams, have them register to # a checkpoint pad or have the checkpoint pad located beneath the # # teleporter. That way, when they are eliminated, they will respawn # back in their team area and new players who spawn in will spawn on # the gameplay pads in the holding area.
Sign in to download module

Copy-paste each file above is always free.

Comments

    Sign in to vote, comment, or suggest an edit. Sign in
    📄
    Source
    @2
    Epic Games Community
    @2

    Created by a member of the Epic Games community. Rights remain with the original author, under Epic's community content terms. Terms ↗

    View original Sources & licensing
    Request removal
    Last updated Jun 23, 2026
    Verse module (2 files)
    Compiles · verified Jun 24, 2026

    Download the full module (zip) from the code panel above.

    Keep exploring
    More in Player · 5 of 24
    Prev
    fortnite teams top player reference updater
    Next
    fortnite number of players in team 1 2
    Related topics
    • Fortnite How To Make A Hunter Vs Runners Game Mode Event Binding Input & Controls
    • Verse Prop Hunt Template 4 Setting Up Teams And Classes In Unreal Editor For Fortnite Building & Props
    • Prop Hunt 04 Setting Up Teams And Classes In Unreal Editor For Fortnite Building & Props
    • Prop Hunt 05 Game Loop And Round Management In Unreal Editor For Fortnite Building & Props
    • Capture The Flag 3 Classes And Teams In Unreal Editor For Fortnite Player

    Related

    Open in graph →

    Related topics

    • Fortnite How To Make A Hunter Vs Runners Game Mode Event Binding
    • Verse Prop Hunt Template 4 Setting Up Teams And Classes In Unreal Editor For Fortnite
    • Prop Hunt 04 Setting Up Teams And Classes In Unreal Editor For Fortnite
    • Prop Hunt 05 Game Loop And Round Management In Unreal Editor For Fortnite
    • Capture The Flag 3 Classes And Teams In Unreal Editor For Fortnite
    VerseIsland · an archipelago of Verse & UEFN knowledge
    🗺️ Island atlas Learn Guides History About & Press Sources & Licensing Status

    Not affiliated with Epic Games. Fortnite, UEFN, Unreal Engine, and Verse are trademarks of Epic Games, Inc. Content is attributed to its source — see Sources & Licensing.

    🦜

    Scout · your island guide

    The Isle of Verse