One trick you could try is to not play the sound immediately, but set a variable to indicate the the sound should be played, then make one of your last events a check for this flag. You could have one for each type of sound, or just one in total. You'd need an extra variable to hold the type/name of the sound you want played in the 'just-one' case.