I have many instances of a single enemy running at a given time. When the player is firing at the player I play "FiringAt.ogg" but I want to stop the sound from playing when an enemy isn't firing.
I can't use "stop sound from playing" because it'll stop all the firing sounds, so the enemy which was firing before and then went back will stop the other enemy's firing sound which is firing at the player right now.
Is there any solution for this problem?