How do I check the 3 nearest enemy, and shoot them at the same time, and when enemy left not 3, let say the enemy left 2, the player still automaticly shoot those 2?
What is the expected result:
let say I want to shoot 3 nearest enemy automaticly. and if the enemy left 2, player automaticly shoot those 2 enemy, and if the enemy left only 1, player automaticly shoot it.
Every time the player shoots (let’s say with a mouse click), you want it to be able to shoot the nearest enemies (max of 3) that are in a certain range from the player?
What do you mean by player shoots “automatically”? Do you mean if 1 or 2 enemies are left, the player shoots those enemies “anutomatically” without clicking anything?
Thank you for your answer. I look at your event and try by myself and it works.
There is only 1 thing, the problem is, when the enemy left only 2 or left only 1. the bullet player still shot 3 times, so there is an enemy who got hit by 2 bullets.