Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Overriding module music?

Page: 1 of 1
 Pikmin
08-16-2008, 6:30 PM
#1
I have a music file(mus_atris) set to play in my new version of the "Atris' Corruption" scene. But it plays on top of the normal music that plays while in the module. Is there a way to keep the other music from playing in the onenter script?
 Tupac Amaru
08-18-2008, 12:33 PM
#2
The premade script a_bg_music can turn the background music on and off during cutscenes. Use 0 as the parameter P1 to turn music off and 1 to turn it on again at the end of the cutscene.

If you want to stop the music in your own scripts, this command will turn the background music offMusicBackgroundStop(GetArea(OBJECT_SELF));
And to make it play again:
MusicBackgroundPlay(GetArea(OBJECT_SELF));
 Pikmin
08-18-2008, 12:36 PM
#3
Sweet! Thanks.
Page: 1 of 1