VerseIsland
FeedLearnLeaderboardGuidesReferenceExploreSearchDocsVerse Library
Sign in
Feed Learn 📖 Codex Leaderboard Guides Reference Explore Search Docs Verse Library
Browse Community Snippets›Player·Up to Community Snippets · Player·11 of 26 in Player

Shuffle FFA Teams

31,530 Views

Report

  • using { /Fortnite.com/Devices }
    using { /UnrealEngine.com/Temporary/Diagnostics }
    using { /Verse.org/Random }
    using { /Verse.org/Simulation }
    
    ffa_shuffle_teams_device := class(creative_device):
        @editable
        Button:button_device = button_device{}
    
        # Selects a new team for every existing player.
        # Each player will be assigned to another team different from their original one.
        # This is meant to be used in a Free For All game.
        ShuffleTeams<public>():void= 
            TeamCollection := GetPlayspace().GetTeamCollection()
            Players := GetPlayspace().GetPlayers()
    
            # The algorithm starts by shuffling the teams in random order.
            # Teams is a variable because we'll remove a team each time we assign a player to it.
            # There's one player per team in a FFA, so once a player is assigned a team, the team isn't 
            # available anymore.
            var Teams:[]team = Shuffle(TeamCollection.GetTeams())

You're reading a preview

The full reference is free for BrainDeadGuild Discord members — sign in to read it all, or open the original at the source.

Sign in with Discord — free for members Read the original at Epic Games documentation

Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.

Guided course

Add this to your free study plan — we’ll suggest related material and stitch it into one compile-checked lesson.

Keep exploring
More in Player · 11 of 26
Prev
fortnite custom loadout creator
Next
fortnite change the rarity of the players pickaxe item outdated with br inventory

Source

Epic Games documentation

View original

Last updated 2026-07-26T13:00:49.458661+00:00

VerseIsland· an archipelago of Verse & UEFN knowledge
🗺️ Island atlasLearnGuidesHistoryAbout & PressSources & LicensingPrivacy PolicyTermsStatus

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