# Source URL: https://dev.epicgames.com/documentation/en-us/fortnite/prop-hunt-05-game-loop-and-round-management-in-unreal-editor-for-fortnite
# Local doc: epic-docs/documentation/en-us/fortnite/prop-hunt-05-game-loop-and-round-management-in-unreal-editor-for-fortnite.md
# Section: Setting Up Teams
# 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.ScoreTimer.SuccessEvent.Subscribe(PropTeam.OnPropsScore)
PropTeam.ScoreManager.SetScoreAward(PropTeam.ScorePerSecond)
PropTeam.TeamManager.TeamMemberEliminatedEvent.Subscribe(OnPropEliminated) # Occurs when a prop agent is eliminated.
Verse Library
verse
02 Setting Up Teams
Sets up the prop team by subscribing to score rewards and elimination events to track gameplay progress.
extracted-snippets/documentation/en-us/fortnite/prop-hunt-05-game-loop-and-round-management-in-unreal-editor-for-fortnite/02-setting-up-teams.verse