Data Realms Fan Forums http://45.55.195.193/ |
|
Temporarily replace overworld music? http://45.55.195.193/viewtopic.php?f=1&t=24976 |
Page 1 of 1 |
Author: | Awesomeness [ Fri Aug 05, 2011 11:01 pm ] |
Post subject: | Temporarily replace overworld music? |
I'd like to know how to temporarily replace the overworld music with some other sound, whether it be silence or music or something else. Not in mission lua, in the lua of an item. I know this is possible but not how to do it. So... How do I do it? Thanks! |
Author: | CaveCricket48 [ Fri Aug 05, 2011 11:15 pm ] |
Post subject: | Re: Temporarily replace overworld music? |
Code: AudioMan:ClearMusicQueue(); AudioMan:PlayMusic("Base.rte/Music/Watts/Last Man.ogg", -1, -1); The first function stops the music currently playing I believe. I don't remember what the last 2 arguments for the second function mean. One is probably how many times to loop the music (-1 for infinite). |
Author: | Awesomeness [ Fri Aug 05, 2011 11:18 pm ] |
Post subject: | Re: Temporarily replace overworld music? |
Is there a way to make the old music play again after the sound finishes? Oh and by the way, the second argument is how many times to loop. |
Author: | zalo [ Sun Aug 07, 2011 5:36 pm ] |
Post subject: | Re: Temporarily replace overworld music? |
The first one is how many times to loop, the second one is the volume. I believe that QueueMusicStream is the function you are looking for. http://wiki.datarealms.com/index.php/Lu ... dioManager |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |