Verse Library verse

09 Finding Players And Teams At Runtime

Main game class defining team limits, device references, and state management for team-based play.

extracted-snippets/documentation/en-us/uefn/triad-infiltration-2-finding-players-at-runtime-in-verse/09-finding-players-and-teams-at-runtime.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/uefn/triad-infiltration-2-finding-players-at-runtime-in-verse
# Local doc:  epic-docs/documentation/en-us/uefn/triad-infiltration-2-finding-players-at-runtime-in-verse.md
# Section:    Finding Players and Teams at Runtime
 triad_infiltration_game := class(creative_device):

     Logger:log = log{Channel := triad_infiltration_log_channel}

     # To avoid players not being able to join a team, you should set the maximum number
     # of players in the island settings to the sum of all of the Maximum(Team) variables.
    
     # Maximum number of players on the Infiltrators Team.
     @editable
     MaximumInfiltrators:int = 2
    
     # Maxmimum number of players on the Attackers Team.
     @editable
     MaximumAttackers:int = 4
    
     # Maximum number of players on the Defenders Team.
     @editable
     MaximumDefenders:int = 4
    
     # Array of Teleporters that teleport players to their team's spawn once the game starts. 
     @editable
     Teleporters:[]teleporter_device = array{}
    
     # Array of weapon granters for each team.
     @editable
     var WeaponGranters:[]item_granter_device = array{}

Sign in free to read the full source 🌴

This Verse Library file is members-only. Create a free account to view the complete source and download the .verse file.

Sign in with Discord

Comments

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