Jump to content

Scripting help needed


Denizen

Recommended Posts

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

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

End

Cipscis

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...