Denizen Posted July 22, 2009 Share Posted July 22, 2009 Currently when I pause the game and then unpause it the radio station I was listening to stops playing, even though it is still selected. To get music to start playing again I have to deselect and reselect the station through the pipboy. Is it possible to write a script that does this automatically? Or if there is another way to make sure the music keeps playing? Btw this only happens with the songs, not the speech. Link to comment Share on other sites More sharing options...
Cipscis Posted July 23, 2009 Share Posted July 23, 2009 I'm not sure what might be causing this problem, unfortunately, so I can't help you fix the root of it, but you should be able to "reset" the currently selected radio station via the PipBoyRadio function. Cipscis Link to comment Share on other sites More sharing options...
Denizen Posted July 23, 2009 Author Share Posted July 23, 2009 I'm a noob to scripting so can you tell me how I would tell it to do that function after I unpause the game? Btw thanks for the help :thanks: Link to comment Share on other sites More sharing options...
Cipscis Posted July 23, 2009 Share Posted July 23, 2009 By using a MenuMode block and an "int" variable, you can store whether or not the game is currently in MenuMode (paused). In addition, you can specify specific types of MenuMode either by passing a parameter to the blocktype declaration or by using MenuMode as a function in a conditional statement. For example, if you want some code to run only when the player re-enters GameMode from MenuMode 1013 (which designates the "Pause" menu) then you could use code like this:int bPauseMenu Begin MenuMode 1013; Pause if bPauseMenu else set bPauseMenu to 1 endif End Begin GameMode if bPauseMenu set bPauseMenu to 0 ; Run this code when the game re-enters GameMode ; after leaving the pause menu endif EndCipscis Link to comment Share on other sites More sharing options...
Recommended Posts