void Start() { PlayerUtils.GetAllPlayers() // Gets all the players .WithinRadius(radiusParams) // Filters players based on radius .MajorityTeamId() // Gets the majority team id. Note 0 means unclaimed, -1 means constested .OnDataChanged() // Trigger when the majority changes .OnTimer(timerParams) // Wait for the designated time .OnDo(capturePoint.SetWinningTeamId); // Set the winning team }