Hello Tony
I have a background music playing during the game.
How do i setup so on specific conversations, the game plays a specific music file? And when the conversations ends then the default music plays again?
Thank you
music during a convasation
Re: music during a convasation
If the conversation plays on a specific NPC, you can add a Dialogue System Events component on the NPC. Configure OnConversationStart() to play the music and OnConversationEnd() to resume the default music. You may need to do a little scripting to play and resume.
Re: music during a convasation
Thank you
I did not need scripting.
I created a gameobject with an audiosource with the music.
My Background music was already on a gameobject with a audisource and the file on it.
So it was easy to use your systems events to ON and OFF.
Can I use a Dialogue system trigger for same thing, but whiteout any conversation? So if i enter a trigger zone i want to play a music and when i exit i resume default?
I did not need scripting.
I created a gameobject with an audiosource with the music.
My Background music was already on a gameobject with a audisource and the file on it.
So it was easy to use your systems events to ON and OFF.
Can I use a Dialogue system trigger for same thing, but whiteout any conversation? So if i enter a trigger zone i want to play a music and when i exit i resume default?
Last edited by hrohibil on Sat Dec 07, 2024 9:36 am, edited 1 time in total.
Re: music during a convasation
Sounds good. Glad to help!