Difference between revisions of "Talk:PlaySound"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>TheImperialDragon
(Help?)
imported>TheImperialDragon
m
Line 5: Line 5:
::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?
::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?


:::I came up with a script that is supposed to start another sound and stop the old one.  Unfortunately, this was not too useful as when I called for another sound to play, the new one played AS well as the old one, and neither stops playing. :/  Not even when I left the worldspace where the scripted object was located do they stop plauing. :(  [[User:TheImperialDragon|The Imperial Dragon]] 17:44, 29 January 2007 (EST)
:::I came up with a script that is supposed to start another sound and stop the old one.  Unfortunately, this was not too useful as when I called for another sound to play, the new one played AS well as the old one, and neither stops playing. :/  Not even when I left the worldspace, the sounds just kept playing... :(  [[User:TheImperialDragon|The Imperial Dragon]] 17:44, 29 January 2007 (EST)

Revision as of 18:22, 29 January 2007

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?
I came up with a script that is supposed to start another sound and stop the old one. Unfortunately, this was not too useful as when I called for another sound to play, the new one played AS well as the old one, and neither stops playing. :/ Not even when I left the worldspace, the sounds just kept playing... :( The Imperial Dragon 17:44, 29 January 2007 (EST)