Skip to content

Game Instance Controller

Enables team-based gamemodes in your world.

Teams each have their own set of properties and events.

Position of the team in the list of teams.

Name of the team.

Color associated with the team.

Maximum number of players allowed in the team.

Score the team has at the start of a game.

Team events are hooks controlled by the team.

Fires when a player joins the team.

Fires when a player leaves the team.

Fires when the team wins the current round.

Fires when the team wins the game.

Properties that control all teams and game conditions.

When enabled, new players are assigned to the team with the fewest players.

When enabled, players can be reassigned to a different team as new players join, regardless of their initial selection.

Percentage of players who must be marked ready before the ready timer activates.

After the ready percentage is met, the time in seconds before the game starts.

  • Default Score-based gamemode.
  • Combat System Elimination-based gamemode.
  • Single Each game is one round.
  • Rounds Each game consists of the number of rounds set in Rounds To Win.

Number of rounds a team needs to win to end the game.

  • Score When a team reaches the score in End Score, the game or round ends.
  • Time When the time in End Time (seconds) is reached, the game or round ends.
  • Time or Score Ends when Time or Score is met.
  • Elimination (Combat System only) Ends when only one team remains.
  • Time or Elimination (Combat System only) Ends when Time or Elimination is met.

Score required to win a round or game.

Time in seconds before a round or game ends.

Hooks controlled by the Game Instance Controller.

Fires when the game starts.

Fires when the round starts.

Fires when the game ends.

Fires when the round ends.

Methods that can be called from Custom Triggers in the CVR Interactable component.

Set the enemy score relative to the local player.

Joins the team with the fewest players.

Leaves the current team.

Sets the score of the local player’s team.

Starts the game regardless of Ready Percentage or Ready Timer.

Marks the local player as ready or not ready.

Attempts to join the team specified by the Team Index property.

When the GameInstanceController has an Animator with a runtimeAnimatorController, the controller forwards these parameters every score / status update:

  • teamScore0, teamScore1, … — one per team, set to team.currentScore.
  • status — matches the current GameStates key (0: waiting, 5: ready up, 7: round starting, 10: game in progress).
  • timer — current round timer in seconds.

string GUID auto-generated on Reset(). Used by the server to track the instance controller. Do not edit manually.

CVR-GameFiles/ABI.CCK.Components/GameInstanceController.cs, CVR-GameFiles/ABI.CCK.Components/Team.cs