Difference between revisions of "Talk:PlaySound"
Jump to navigation
Jump to search
imported>DragoonWraith |
imported>Scruggs (no stopsound, but always a workaround) |
||
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) |
Revision as of 21:18, 28 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)