using { /Fortnite.com/Devices } using { /Fortnite.com/Teams } using { /UnrealEngine.com/Temporary/Symbols } # This is our main script. It runs when the game starts. TriadSetupDevice := class(creative_device): # CONSTANTS: The "Loot Pool" of our setup. # These are fixed. We point Verse to the specific devices we placed in the editor. # Think of these as the "names" of the desks in our office building. Red_Spawn_Pad := spawn_pad Blue_Spawn_Pad := spawn_pad Green_Spawn_Pad := spawn_pad Red_Team_Setting := team_settings Blue_Team_Setting := team_settings Green_Team_Setting := team_settings Red_Gun_Grant := item_granter Blue_Gun_Grant := item_granter Green_Gun_Grant := item_granter # This function runs once when the match begins. OnBegin(): void = # 1. Assign Players to Teams # We tell each Team Setting device to "take control" of players. # This is like the bus dropping players into specific departments. Red_Team_Setting.SetTeamForPlayer() Blue_Team_Setting.SetTeamForPlayer() Green_Team_Setting.SetTeamForPlayer() # 2. Grant Items # We activate the Item Granter devices. # This is like handing out the welcome kits to new employees. Red_Gun_Grant.GrantItem() Blue_Gun_Grant.GrantItem() Green_Gun_Grant.GrantItem() # 3. Teleport to Spawns # We activate the teleporters to move players to their specific pads. # This ensures no one is standing in the wrong room. Red_Teleporter.Activate() Blue_Teleporter.Activate() Green_Teleporter.Activate()