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

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 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 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)

Source

Epic Games documentation

View original

Last updated 2026-05-12T22:19:28.539731+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