Verse Library verse

10 Handling A Player Joining Mid Game

Subscribes to new player events and triggers initial team balancing routine on start.

extracted-snippets/documentation/en-us/fortnite/team-multiplayer-balancing-in-verse/10-handling-a-player-joining-mid-game.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/fortnite/team-multiplayer-balancing-in-verse
# Local doc:  epic-docs/documentation/en-us/fortnite/team-multiplayer-balancing-in-verse.md
# Section:    Handling a Player Joining Mid-Game
OnBegin<override>()<suspends> : void =
GetPlayspace().PlayerAddedEvent().Subscribe(OnPlayerAdded)
Print("Beginning to balance teams")
BalanceTeams()

Comments

    Sign in to vote, comment, or suggest an edit. Sign in