I have no idea if this is how to do it properly, but you could attach a non-rendered sphere to the player’s head and detect when bullets pass through it, then play the sound. That method also makes it easy to visualize the distance that the player would hear whiz-bys.