Playing Audio Sound in the SDK

Afforess

The White Wizard
Joined
Jul 31, 2007
Messages
12,239
Location
Austin, Texas
Is there an easy way to interrupt the music soundtrack in the SDK? I had an idea to have some special battle themes that start when a human enters a war.
 
I don't know of anything within the SDK that does that, but CvPlayer::getMusicScriptId(PlayerTypes eForPlayer) may do what you want. I didn't test it, but it probably gets called when war starts. If so, just modify the return value if the player is human.
 
Back
Top Bottom