You need to use a sound handle, like this:

Code:
var snd_handle = 0; // global variable
...
if(snd_playing(snd_handle) == 0)
{					
 snd_handle = snd_play(engine_thrust,50,0);
}



Edit:
And if you want the sound to play over and over again, use snd_loop instead (stop it again using 'snd_stop(snd_handle);').

Last edited by Claus_N; 08/04/09 16:09.