datablock AudioProfile(BGM_TripLoop)
{
filename = "Add-ons/Koden/TripLoop.wav";
description = AudioClose3d;
preload = true;
};
package BGM_Trip
{
function GameConnection::onClientEnterGame(%this)
{
Parent::onClientEnterGame(%this);
%this.play2D(BGM_TripLoop);
}
};
activatePackage(BGM_Trip);
The script works fine, but I can't get it to play new songs or repeat, because it only works when you enter the server. Much kudos to you if you can tell me how to loop or play new songs. If it all comes down to it, I can edit the songs together into one file, but I really don't want to do that.