Difference between revisions of "Talk:PlaySound"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Scruggs
(no stopsound, but always a workaround)
imported>DragoonWraith
(thanks, that helps a lot!)
Line 1: Line 1:
[[User:DragoonWraith|<font face="Oblivion,Daedric Runes" size=3>D</font>ragoon <font face="Oblivion,Daedric" size=3>W</font>raith]] [[User_talk:DragoonWraith|<font face="Oblivion,Daedric" size=2>TALK</font>]] 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?
[[User:DragoonWraith|<font face="Oblivion,Daedric Runes" size=3>D</font>ragoon <font face="Oblivion,Daedric" size=3>W</font>raith]] [[User_talk:DragoonWraith|<font face="Oblivion,Daedric" size=2>TALK</font>]] 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. [[User:Scruggs|Scruggs]] 22:18, 28 July 2006 (EDT)
: 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. [[User:Scruggs|Scruggs]] 22:18, 28 July 2006 (EDT)
::[[User:DragoonWraith|<font face="Oblivion,Daedric Runes" size=3>D</font>ragoon <font face="Oblivion,Daedric" size=3>W</font>raith]] [[User_talk:DragoonWraith|<font face="Oblivion,Daedric" size=2>TALK</font>]] 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?

Revision as of 00:29, 29 July 2006

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?