Do you mean something like this
Code:
Sound* mysound = <sound.wav>; //Put your sound here
var mysound_handle;


function play_mysound()
{
mysound_handle = snd_play(mysound, 100, 0);
}

action iplaysound //attach this to the block that you want to trigger the sound
{
MY.VISIBLE = OFF;
MY.ENABLE_IMPACT = ON;
MY.EVENT = play_mysound();
}

Here Hope this helps.