Could this be improved so that a longer sound effect plays in full when the enemy spots the player? I've tried making the enemy invisible and using sound effects to play a small section of plot dialog or BGM needed for a specific chapter when he spots the player, which seems like a good idea, but I've run into a problem where the sound effect in play stops playing if you're too far away from the enemy ..........
I've tried decorating and the triggered sound effects have the same problem