VerseIsland
Feed Learn Leaderboard Guides Reference Explore Search Docs Verse Library
Sign in
Feed Learn 📖 Codex Leaderboard Guides Reference Explore Search Docs Verse Library
Fortnite › Weapons · Up to Fortnite · Weapons · 5 of 867 in Weapons
Browse Fortnite

Granting Weapons on Player Spawn in Verse

Now that you’ve balanced players into teams, you want to grant them the correct weapons based on what team they were balanced onto. Follow the steps below to learn how to grant players the appropriate weapons when they spawn.

Granting Weapons based on Team

  1. In the triad_infiltration_game class definition, add a new function named GrantTeamWeapon(). This function grants a weapon to a player based on their respective team. GrantTeamWeapon(InPlayer:player):void=

  2. In GrantTeamWeapon(), get the team for the given player. Then in a for loop, iterate through each team in the Teams array, getting the index for that team and storing it in a variable TeamIndex. Check if the given player’s team matches this team as a filter condition in your for loop.

    |  |  |
    | --- | --- |
    |  | GrantTeamWeapon(InPlayer:player):void= |
    |  | if(CurrentTeam := GetPlayspace().GetTeamCollection().GetTeam[InPlayer]): |
    |  | for(TeamIndex -> PlayerTeam:Teams, PlayerTeam = CurrentTeam): |
    

    GrantTeamWeapon(InPlayer:player):void= if(CurrentTeam := GetPlayspace().GetTeamCollection().GetTeam[InPlayer]): for(TeamIndex -> PlayerTeam:Teams, PlayerTeam = CurrentTeam):

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

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

Comments

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

    © Epic Games. Official Epic developer documentation, shown here as a reference with a link to the original. All rights remain with Epic Games. Terms ↗

    View original Sources & licensing
    Request removal
    Last updated May 12, 2026
    Keep exploring
    More in Weapons · 5 of 867
    Prev
    the walking dead universe weapons in unreal editor for fortnite
    Next
    using dlauncher devices in fortnite creative
    Browse all files in this folder (A–Z)
    Next up
    • Granting Weapons On Spawn
    Related topics
    • Triad Infiltration 4 Granting Weapons On Player Spawn In Verse Weapons
    • Triad Infiltration 3 Balancing Teams Asymmetrically In Verse Player
    • Triad Infiltration 03 Balancing Teams Asymmetrically In Verse Player
    • Triad Infiltration In Verse Verse Language
    • Triad Infiltration 01 Setting Up The Level In Verse Verse Language

    Related

    Open in graph →

    Related topics

    • Triad Infiltration 4 Granting Weapons On Player Spawn In Verse
    • Triad Infiltration 3 Balancing Teams Asymmetrically In Verse
    • Triad Infiltration 03 Balancing Teams Asymmetrically In Verse
    • Triad Infiltration In Verse
    • Triad Infiltration 01 Setting Up The Level In Verse
    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