lovromirnik Posted November 22, 2015 Share Posted November 22, 2015 Hey, I can use PlaySound to play any .wav file, however I noticed that even after the script is terminated, if the sound has a remaining duration it will continue to play, until it either reaches the end of the sound file or SCAR is closed... Any ways to make a sound stop when terminating a script? Quote Link to comment Share on other sites More sharing options...
Wanted Posted November 26, 2015 Share Posted November 26, 2015 Hey, I can use PlaySound to play any .wav file, however I noticed that even after the script is terminated, if the sound has a remaining duration it will continue to play, until it either reaches the end of the sound file or SCAR is closed... Any ways to make a sound stop when terminating a script? Have you tried playing another sound that has basically no duration in hopes that it would cancel the previous one? If said strategy works you could simply use that as a StopSound" function and add it to your ScriptTerminate procedure effectively accomplishing your goal. Quote Link to comment Share on other sites More sharing options...
lovromirnik Posted November 27, 2015 Author Share Posted November 27, 2015 Genious, I made a 100ms empty .wav file and called it at the ScriptTerminate procedure like you suggested. Works like a charm! Quote Link to comment Share on other sites More sharing options...
Wanted Posted November 27, 2015 Share Posted November 27, 2015 Nice, now someone can make that SCAR keyboard guitar script work Quote Link to comment Share on other sites More sharing options...