Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.
Tricksters Advanced Targetting script can do this, you can set scripts to attack a certain amount of enemies, or allies or both and is customizable for all kinds of targetting