# Source URL: https://dev.epicgames.com/documentation/en-us/uefn/team-elimination-game-7-testing-multiplayer-using-the-sentry-device-in-verse
# Local doc: epic-docs/documentation/en-us/uefn/team-elimination-game-7-testing-multiplayer-using-the-sentry-device-in-verse.md
# Section: 7. Testing Multiplayer Using the Sentry Device
OnBegin<override>()<suspends> : void =
set Teams = GetPlayspace().GetTeamCollection().GetTeams()
set EliminationsToEndGame = WeaponGranters.Length
Logger.Print("Number of eliminations to end game is {EliminationsToEndGame}")
Logger.Print("Beginning to assign players")
PopulateTeamsAndPlayers()
for (Spawner : PlayerSpawners):
Spawner.SpawnedEvent.Subscribe(OnPlayerSpawn) # Subscribe to each player spawn pad
for (Sentry : Sentries):
Sentry.EliminatedEvent.Subscribe(TestPlayerEliminated) # Subscribe to each Sentry
# Subscribe to new players joining the game
GetPlayspace().PlayerAddedEvent().Subscribe(OnPlayerAdded)
Verse Library
verse
02 7 Testing Multiplayer Using The Sentry Device
Initializes team assignments and subscribes to spawn, join, and elimination events.
extracted-snippets/documentation/en-us/uefn/team-elimination-game-7-testing-multiplayer-using-the-sentry-device-in-verse/02-7-testing-multiplayer-using-the-sentry-device.verse