# PROP HUNT UEFN TEMPLATE

**URL:** <https://forums.unrealengine.com/t/prop-hunt-uefn-template/1681513>\
**Category:** World Creation\
**Tags:** unreal-engine, fortnite-creative, unreal-editor-for-fortnite, question, fortnite\
**Created:** [February 11, 2024, 2:02pm UTC](https://forums.unrealengine.com/t/prop-hunt-uefn-template/1681513 "2024-02-11T14:02:06Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![DA\_NOFACE](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DA\_NOFACE](https://forums.unrealengine.com/u/DA_NOFACE)\
**Post date:** [February 11, 2024, 2:02pm UTC](https://forums.unrealengine.com/t/prop-hunt-uefn-template/1681513/1 "2024-02-11T14:02:06Z")

</div>

I tried the uefn prop hunt template with verse but there is a missing verse file so i get errors. Has anyone made it work?

---

<div class="post-metadata">

**Author:** ![Flak](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/flak/32/769441_2.png) [@Flak](https://forums.unrealengine.com/u/Flak)\
**Post date:** [February 14, 2024, 2:11pm UTC](https://forums.unrealengine.com/t/prop-hunt-uefn-template/1681513/2 "2024-02-14T14:11:10Z")

</div>

Starting the project with Verse enabled should not produce any errors. Could you give us the steps you took to get to the missing file?

---

<div class="post-metadata">

**Author:** ![c0bbfather](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@c0bbfather](https://forums.unrealengine.com/u/c0bbfather)\
**Post date:** [July 12, 2024, 6:56pm UTC](https://forums.unrealengine.com/t/prop-hunt-uefn-template/1681513/3 "2024-07-12T18:56:02Z")

</div>

Hi Flak I am having the same issue so in the guide there is no information for Prop\_Hunt\_Device and on step 6 where it gives us all the scripts the Prop\_Hunt script doesnt exist I did notice somewhere in the guide was a screenshot where the person who created it had a verse file Prop\_Hunt.Verse

in the Round\_timer.verse this is where the error occurs

round\_timer := class(creative\_device):

```
Logger:log = log{Channel:=log_prop_hunt_device}

```

Thanks,  
Gary.

---

<div class="post-metadata">

**Author:** ![BazooStudios](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bazoostudios/32/763624_2.png) [@BazooStudios](https://forums.unrealengine.com/u/BazooStudios)\
**Post date:** [November 9, 2024, 3:26pm UTC](https://forums.unrealengine.com/t/prop-hunt-uefn-template/1681513/4 "2024-11-09T15:26:19Z")

</div>

there is a missing script in the tutorial. create one called prop\_hunt and it will look like this: also, the latest version of Verse doesnt allow ‘set’ inside of ‘if’ and the fail-ables have to be seperated from the ‘set’. hope this helps someone

```auto
using { /Fortnite.com/Devices }
using { /Fortnite.com/UI }
using { /UnrealEngine.com/Temporary/Diagnostics }
using { /UnrealEngine.com/Temporary/SpatialMath }
using { /UnrealEngine.com/Temporary/UI }
using { /Verse.org/Colors }
using { /Verse.org/Random }
using { /Verse.org/Simulation }

log_prop_hunt_device := class(log_channel){}

# This class contains the logic for starting and ending a round. It also handles events for players joining and leaving when a round is in progress.
prop_hunt := class(creative_device):
    Logger:log = log{Channel:=log_prop_hunt_device}

    @editable # An instance of the prop_team class, used to manage the Prop team.
    PropTeam:prop_team = prop_team{}

    @editable # An instance of the hunter_team class, used to manage the Hunter team.
    HunterTeam:hunter_team = hunter_team{}

    @editable # The round manager device is used to end the round when the last prop agent is eliminated.
    RoundSettings:round_settings_device = round_settings_device{}

    @editable # The teleporter in the lobby area. This device is enabled and disabled to allow props and hunters out of the pre-game lobby.
    LobbyTeleporter:teleporter_device = teleporter_device{}

    @editable # The waiting for more players device. This device checks if there are enough players to start the round.
    WaitingForMorePlayers:waiting_for_more_players = waiting_for_more_players{}

    @editable # This hud controller is used when a round is waiting to start.
    # Set Priority to "Highest" for this device and have a second HUD controller set to < "Highest" to use during the round.
    HUDControllerWaiting:hud_controller_device = hud_controller_device{}

    @editable # The round timer device. This device keeps track of the time left in the round and is started within StartTheHunt().
    RoundTimer:round_timer = round_timer{}

    @editable # The device that controls the game music. 
    GameMusic:radio_device = radio_device{}

    @editable # Message for when the hunter agents are set loose in the game.
    StartTheHuntMessage:hud_message_device = hud_message_device{}

    @editable # The Verse class that controls the opening cinematic.
    Cinematic:billboard_cinematic = billboard_cinematic{}

    # When the device is started in a running game, initialize subscriptions and launch the team setup. This runs at the start of every round.
    OnBegin<override>()<suspends>:void =
        Sleep(1.0)
        Logger.Print("Round loaded.")

        # Play cinematic at beginning if user has it enabled
        if (Cinematic.PlayAtStart?):
            Cinematic.EnterCinematicModeForAll(GetPlayspace().GetPlayers())
            Cinematic.CinematicCompleted.Await()
            Cinematic.EndCinematicModeForAll(GetPlayspace().GetPlayers())
            Logger.Print("Cinematic Completed.")
        else:
            Logger.Print("Cinematic Skipped.")

        GameMusic.Play()
        SetUpTeams()
        race: # When there are no more prop or hunter agents (whichever happens first), or the round timer finishes, the round ends
            PropTeam.TeamEmptyEvent.Await()
            HunterTeam.TeamEmptyEvent.Await()
            RoundTimer.AwaitEnd()
        Logger.Print("Round ending.")
        EndRound()

    # When a round is started, subscribe to team devices, randomly pick the hunter agents, enable the hunter timer, set the prop agents, and teleport them into the game area.
    SetUpTeams()<suspends>:void =
        Logger.Print("Setting up teams.")

        # Subscribe to the prop team score timer, set the score award, and subscribe to the prop team's eliminated event.
        PropTeam.ScoreManager.SetScoreAward(PropTeam.ScorePerSecond)
        PropTeam.TeamManager.TeamMemberEliminatedEvent.Subscribe(OnPropEliminated) # Occurs when a prop agent is eliminated.

        # Subscribe to the hunter team's wait timer and set the duration. Also subscribe to the hunter team's elimination event.
        HunterTeam.WaitTimer.SuccessEvent.Subscribe(HuntersGo)
        HunterTeam.WaitTimer.SetMaxDuration(HunterTeam.SpawnDelay)
        HunterTeam.TeamManager.EnemyEliminatedEvent.Subscribe(OnHunterEliminated) # Occurs when a hunter agent eliminates a prop agent.

        # Initialize the starting hunter and prop agents arrays. Get the players and find the number of players in the server.
        var StartingHunterAgents:[]agent = array{}
        var StartingPropAgents:[]agent = array{}
        var Players:[]player = GetPlayspace().GetPlayers()

        # Enable the HUD appropriate for waiting for players. 
        HUDControllerWaiting.Enable()

        # Check if there are enough players to start the round.
        set Players = WaitingForMorePlayers.WaitForMinimumNumberOfPlayers(Players)
        Logger.Print("Round started.")

        # Disable the waiting HUD to use the next highest priority HUD. 
        HUDControllerWaiting.Disable()

        # Now that the round has started, we need to handle players being added or removed from the match. Subscribe to those events.
        GetPlayspace().PlayerAddedEvent().Subscribe(OnPlayerAdded)
        GetPlayspace().PlayerRemovedEvent().Subscribe(OnPlayerRemoved)

        # Calculate the number of starting hunter agents for the game based on the player count and the number of hunter agents per number of players.
        NumberOfPlayers:float = 1.0 * Players.Length # Converts Players.Length to a float so it can be used in the next Ceil function.
        if (NumberOfStartingHunters:int = Ceil[NumberOfPlayers / Max(1.1, HunterTeam.HunterAgentPerNumberOfPlayers)]):
            # Shuffle the players and then slice the array to get the starting hunter agents. The remaining players are the starting prop agents. 
            var RandomizedPlayers:[]agent = Shuffle(Players)
            if (set StartingHunterAgents = RandomizedPlayers.Slice[0,NumberOfStartingHunters]) {}
            if (set StartingPropAgents = RandomizedPlayers.Slice[NumberOfStartingHunters,RandomizedPlayers.Length]) {}

            # Iterate through the starting hunter agents and assign them to the hunter team. Then start the hunter wait timer.
            Logger.Print("Setting {StartingHunterAgents.Length} hunter agent(s).")
            for (StartingHunterAgent : StartingHunterAgents):
                HunterTeam.InitializeAgent(StartingHunterAgent)
            HunterTeam.WaitTimer.Start()

            # Iterate through the starting prop agents and assign them to the prop team. Teleport them into the play area.
            Logger.Print("Setting {StartingPropAgents.Length} prop agent(s).")
            LobbyTeleporter.Enable()
            for (StartingPropAgent : StartingPropAgents):
                PropTeam.InitializeAgent(StartingPropAgent)
                PropTeam.HeartBeat.SetUpUI(StartingPropAgent)
                LobbyTeleporter.Activate(StartingPropAgent)
            LobbyTeleporter.Disable()
            # Set the props remaining tracker's Target and Value to the current number of props.
            # In the future, we'll only update Value as props are eliminated.
            PropTeam.PropsRemainingTracker.SetTarget(PropTeam.Count())
            PropTeam.UpdatePropsRemainingTracker()

    # When the hunter timer finishes, spawn the function that unleashes the hunter agents into the game and begins the round.
    # HunterInstigator is needed for the event subscription but not used.
    HuntersGo(HunterInstigator:?agent):void =
        spawn{ StartTheHunt() }

    # Enable the lobby teleporter, teleport all the hunter agents to the game area and then run the prop game loop for each prop agent.
    StartTheHunt()<suspends>:void =
        Logger.Print("Teleporting hunter agent(s).")
        LobbyTeleporter.Enable()
        Sleep(0.5) # Delaying half a second to give the teleporter time to enable.
        for (HunterAgent : HunterTeam.GetAgents[]):
            LobbyTeleporter.Activate(HunterAgent)
            StartTheHuntMessage.Show(HunterAgent)
        Logger.Print("Starting prop(s) game logic.")
        for (PropAgent : PropTeam.GetAgents[]):
            spawn {PropTeam.RunPropGameLoop(PropAgent)}
            StartTheHuntMessage.Show(PropAgent)

        # Signal that the round has started to start the round and scoring timers.
        RoundTimer.Start()
        PropTeam.ScoreTimer.Start()

    # When a player joins the match mid-round, make them a hunter if the round has started.
    OnPlayerAdded(Player:player):void =
        Logger.Print("A player joined the game.")
        if (PropTeam.Count() > 0): # if there are any prop agents, the round has started.
            HunterTeam.InitializeAgent(Player)

    # When a hunter agent eliminates a prop agent, award score. The score is divided by the number of prop agents remaining.
    OnHunterEliminated(HunterAgent:agent):void =
        Logger.Print("Hunter agent eliminated a prop agent.")
        PropTeamSize := PropTeam.Count()
        if (EliminationAward := Floor(HunterTeam.MaxEliminationScore / PropTeamSize)):
            Logger.Print("Awarding {EliminationAward} points.")
            HunterTeam.ScoreManager.SetScoreAward(EliminationAward)
            HunterTeam.ScoreManager.Activate(HunterAgent)

    # When a prop agent is eliminated, remove the prop from the prop team, check for round end, and set them as a hunter.
    OnPropEliminated(PropAgent:agent):void =
        Logger.Print("Prop agent eliminated.")
        spawn{ PropTeam.EliminateAgent(PropAgent) }
        HunterTeam.InitializeAgent(PropAgent)
  
    # When a player leaves the match, check which team they were on and then check for round end.
    OnPlayerRemoved(Player:player):void =
        Logger.Print("A player left the game.")
        if (PropTeam.FindOnTeam[Player]):
            Logger.Print("Player was a Prop.")
            spawn{ PropTeam.EliminateAgent(Player) }
        if (HunterTeam.FindOnTeam[Player]):
            Logger.Print("Player was a Hunter.")
            spawn{ HunterTeam.EliminateAgent(Player) }

    # Cleans up the heart beat VFX and then ends the round.
    EndRound():void=
        PropTeam.HeartBeat.DisableAll()
        # Get any player to pass to EndRound
        Players:[]player = GetPlayspace().GetPlayers()
        if (RoundEndInstigator := Players[0]):
            Logger.Print("Round ended.")
            RoundSettings.EndRound(RoundEndInstigator)

```

---

<div class="post-metadata">

**Author:** ![LARNIGAMES](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LARNIGAMES](https://forums.unrealengine.com/u/LARNIGAMES)\
**Post date:** [December 21, 2024, 3:18am UTC](https://forums.unrealengine.com/t/prop-hunt-uefn-template/1681513/5 "2024-12-21T03:18:25Z")

</div>

I followed your recommendations, but I still have one error that I can’t resolve. Could you please help me figure out what the problem might be?

 ![01](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/b/5/3b5e1b86fc32cad89fe89cb41c8b23056a6ea040.jpeg)

---

<div class="post-metadata">

**Author:** ![Deesgan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Deesgan](https://forums.unrealengine.com/u/Deesgan)\
**Post date:** [January 10, 2025, 1:23pm UTC](https://forums.unrealengine.com/t/prop-hunt-uefn-template/1681513/6 "2025-01-10T13:23:19Z")

</div>

@LARNIGAMES  
were you able to solve the problem?

---

<div class="post-metadata">

**Author:** ![Reeyawn](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/reeyawn/32/1125649_2.png) [@Reeyawn](https://forums.unrealengine.com/u/Reeyawn)\
**Post date:** [March 26, 2025, 11:18pm UTC](https://forums.unrealengine.com/t/prop-hunt-uefn-template/1681513/7 "2025-03-26T23:18:41Z")

</div>

Hey! I’m getting errors in **prop\_hunt.verse**.

Line 45:

```auto
   @editable # The Verse class that controls the opening cinematic.
   Cinematic:billboard_cinematic = billboard_cinematic{}

```

![Screenshot 2025-03-26 175838](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/5/9/d59a28ba6449c686e3816303c039461dc260eabf.png)

Does this need to be cinematic\_sequence\_device instead?

Lines 107 &108:

```auto
            if (set StartingHunterAgents = RandomizedPlayers.Slice[0,NumberOfStartingHunters]) {}
            if (set StartingPropAgents = RandomizedPlayers.Slice[NumberOfStartingHunters,RandomizedPlayers.Length]) {}

```

![Screenshot 2025-03-26 180838](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/9/d/69d2caab64c2113a30ca9a2e15f88f411e973649.png)

I’m guessing this is what you meant in your comment. Would you know how to rewrite these?

I get the same ‘set’ errors in **round\_timer.verse** as well.

Line 126:

```auto
        if (set InSeconds = Round[RoundTimeInMinutes * 60.0]) {}

```

Line 134:

```auto
        if (set Minutes = Floor(TimeRemainingInSeconds / 60)) {}

```

Line 138:

```auto
        if (set Seconds = Mod[TimeRemainingInSeconds, 60]) {}

```

Line 150:

```auto
            if (set TextBlock = TimeRemainingTextBlocks[Player]) {}

```

I’d really appreciate any help with figuring this out.

---

<div class="post-metadata">

**Author:** ![Flak](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/flak/32/769441_2.png) [@Flak](https://forums.unrealengine.com/u/Flak)\
**Post date:** [March 27, 2025, 11:22am UTC](https://forums.unrealengine.com/t/prop-hunt-uefn-template/1681513/8 "2025-03-27T11:22:03Z")

</div>

I’ll get someone to take a look.

---

<div class="post-metadata">

**Author:** ![Flak](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/flak/32/769441_2.png) [@Flak](https://forums.unrealengine.com/u/Flak)\
**Post date:** [March 27, 2025, 12:48pm UTC](https://forums.unrealengine.com/t/prop-hunt-uefn-template/1681513/9 "2025-03-27T12:48:24Z")

</div>

Hi @Reeyawn, I had a response back from one of our Technical Directors.

`billboard_cinematic` is defined in a separate file in the template `billboard_cinematic_flythrough.verse`

Best guess is some of your changes broke your project. Could you try starting a new project with the latest version?

---

<div class="post-metadata">

**Author:** ![Reeyawn](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/reeyawn/32/1125649_2.png) [@Reeyawn](https://forums.unrealengine.com/u/Reeyawn)\
**Post date:** [March 27, 2025, 7:01pm UTC](https://forums.unrealengine.com/t/prop-hunt-uefn-template/1681513/10 "2025-03-27T19:01:14Z")

</div>

Hi! Thanks for getting back to me so quickly.

There doesn’t seem to be a **billboard\_cinematic\_flythrough.verse** file referenced anywhere in the [Prop Hunt Template](https://dev.epicgames.com/documentation/en-us/uefn/prop-hunt-06-adding-the-full-script-in-unreal-editor-for-fortnite).

Also, it seems that the **prop\_hunt.verse** file is missing from the template like @BazooStudios mentioned.

---

<div class="post-metadata">

**Author:** ![Mineblo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mineblo/32/1203575_2.png) [@Mineblo](https://forums.unrealengine.com/u/Mineblo)\
**Post date:** [March 27, 2025, 7:22pm UTC](https://forums.unrealengine.com/t/prop-hunt-uefn-template/1681513/11 "2025-03-27T19:22:33Z")

</div>

The documentation seems a bit outdated you can find the latest verse scripts by opening its template in the UEFN Template list.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/c/4/0c460a40289d97fbcd087fe0cd63545da55eda2c.jpeg)  
It contains all the verse files with no errors prevent compilation.  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/a/c/eac83184d733e8f110cf5099f536c683f7956e22.png)

---

<div class="post-metadata">

**Author:** ![Reeyawn](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/reeyawn/32/1125649_2.png) [@Reeyawn](https://forums.unrealengine.com/u/Reeyawn)\
**Post date:** [March 27, 2025, 7:47pm UTC](https://forums.unrealengine.com/t/prop-hunt-uefn-template/1681513/12 "2025-03-27T19:47:06Z")

</div>

Ahh, okay awesome. Thanks for letting me know!
