VerseIsland
FeedLearnLeaderboardGuidesReferenceExploreSearchDocsVerse Library
Sign in
Feed Learn 📖 Codex Leaderboard Guides Reference Explore Search Docs Verse Library
Browse Fortnite›Player·Up to Fortnite · Player·28 of 142 in Player

Tracking Players Using Maps in Verse

You're going to use a map to track the number of eliminations a player has scored. Maps provide a handy association of keys to values, and in this tutorial, you’ll use the player as the key and their associated weapon tier (represented as an int) as the value. That way, you can retrieve a player’s current tier given just a reference to the player. An example of how a map of player-to-weapon tier associations might look is provided below.

Key player 1 player 2 player 3
Value 1 2 2
Weapon in Game Combat Pistol L1 Flint-Knock Pistol L1 Flint-Knock Pistol L1

Follow these steps to set up and populate your map of players:

  1. Add [player]int map named PlayerMap to the team_elimination_game class. This stores a reference to each player and their weapon tier.

    Verse

    |  |  |
    | --- | --- |
    |  | team_elimination_game := class(creative_device): |
    |  | var PlayerMap : [player]int = map{} |
    

    team_elimination_game := class(creative_device): var PlayerMap : [player]int = map{}

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 · 28 of 142
Prev
team elimination 3 subscribing to player events in verse
Next
team elimination 6 handling a player joining a game in progress in verse
Browse all files in this folder (A–Z)

Source

Epic Games documentation

View original

Last updated 2026-02-11T09:18:14.116711+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