var enemyHeroesInRange = ObjectManager.GetIn this example, we use ObjectManager.Get to get all heroes in the game, filter out only the enemy heroes, and then count how many are within range of the Player. If there is at least one enemy hero within range, then we print out a message indicating how many there are. Package Library: The package library for Obj_AI_Hero CountEnemyHeroesInRange is likely part of the LeagueSharp.Game assembly. It is commonly used in conjunction with other LeagueSharp libraries for game automation and scripting.().Where(hero => hero.IsEnemy && hero.Distance(Player) < 2000); var enemyHeroCount = enemyHeroesInRange.Count(); if (enemyHeroCount > 0) { Console.WriteLine($"There are {enemyHeroCount} enemy heroes within range."); }