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

Gun Game Script

224,466 Views

Report

  • 
    using { /Fortnite.com/Characters }
    using { /Fortnite.com/Devices }
    using { /Fortnite.com/Game }
    using { /Fortnite.com/Playspaces }
    using { /Verse.org/Simulation }
    using { /UnrealEngine.com/Temporary/Diagnostics }
    
    basic_gun_game_device := class(creative_device):
    
        @editable
        IGD_WeaponList:item_granter_device = item_granter_device{}
    
        @editable
        EGD_Win:end_game_device = end_game_device{}
    
        var PlayerElims:[player]int = map{}
        var ElimsToWin:int = 0
    
        OnBegin<override>()<suspends>:void=
            Setup()
    
        Setup()<suspends>:void=
            set ElimsToWin = GetWeaponListLength()
            GetPlayspace().PlayerAddedEvent().Subscribe(TrackElims)
            for (Player : GetPlayspace().GetPlayers()) do TrackElims(Player)
    
        TrackElims(Player:player):void=
            IGD_WeaponList.GrantItemIndex(Player, 0)
            if (FortCharacter:fort_character = Player.GetFortCharacter[]):
                FortCharacter.EliminatedEvent().Subscribe(OnCharacterEliminated)

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 · 3 of 6
Prev
fortnite class for multiple weapon assignments
Next
fortnite additional damage per specific weapon verse device

Source

Epic Games documentation

View original

Last updated 2026-07-26T12:16:38.192751+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