# This is a simple script to demonstrate team setup.
# In a real game, this would be part of a larger game loop.
# We define a function that runs when the round starts.
# Think of this like the "Start Match" button on the map.
OnRoundStart := func():
# This line is a placeholder for where we would actually
# assign players to teams based on their class selection.
# For now, we just print a message to the debug log.
print("Round started! Teams are set up.")
# In the full Prop Hunt tutorial, this is where you would
# subscribe to events like "PlayerJoined" and "ClassSelected"
# to move players to their starting zones.
# Example of what the next step looks like (conceptual):
# hunters := GetPlayersOnTeam(1)
# props := GetPlayersOnTeam(2)
# Then you'd teleport them!
# For each hunter in hunters:
# teleport(hunter, hunter_spawn_point)
Verse Library
verse
01 Fragment
Initializes matches, assigns players to teams, and teleports them to spawn zones.
verse-library/prop-hunt-04-setting-up-teams-and-classes-in-unreal-editor-for-fortnite/01-fragment.verse