Talk:PlaySound

From the Oblivion ConstructionSet Wiki
Revision as of 00:29, 29 July 2006 by imported>DragoonWraith (thanks, that helps a lot!)
Jump to navigation Jump to search

Dragoon Wraith TALK 21:59, 28 July 2006 (EDT): OK, I want to play a sound so long as X is true, how do I set that up? How long does a sound play for? Is there anyway to stop it?

As long as you've set up your sound to loop, it will play indefinitely. There's no stopSound function like Morrowind had, which is annoying. However, displaying a message or messageBox will stop the sound. So will starting a new sound. If you create a silent wav file, you can call playSound <silentSoundID> to stop the currently playing sound. Scruggs 22:18, 28 July 2006 (EDT)
Dragoon Wraith TALK 01:29, 29 July 2006 (EDT): Ah, good call! Thanks as always, scruggs!
At the moment I have it set to not loop, and I just call it every 3 seconds (the file is 3 seconds long) while it's supposed to be playing. I noticed it wasn't very consistent - is there any reason why this might not work as intended?