Quote:
Originally Posted by Elk
If I have an URL loopplayed on an overworld, and I want it to crossfade into the Inn theme once I enter the Inn, is there a possability to do so with a script? Please let me know!
|
Could do something like this when entering a new level.
PHP Code:
//#CLIENTSIDE
function onPlayerEnters() {
for(temp.i = 1; temp.i > 0; temp.i -= .1) {
setmusicvolume(temp.i, temp.i);
sleep(.05);
}
stopmidi();
playlooped("newsong");
}
Then could always use do another small loop to increase the volume of the second song. Not exactly crossfade, but, close.
