Ancordia_PRC8/_module/nss/mus_playsetsong.nss
Jaysyn904 102ba7dab6 Initial Commit
Initial Commit
2023-09-21 19:51:32 -04:00

15 lines
345 B
Plaintext

void main()
{
object oArea = GetArea(OBJECT_SELF);
int iSong = GetLocalInt(OBJECT_SELF, "SONG");
if (iSong == 0)
{
MusicBackgroundStop(oArea);
return;
}
MusicBackgroundStop(oArea);
MusicBackgroundChangeDay(oArea, iSong);
MusicBackgroundChangeNight(oArea, iSong);
MusicBackgroundPlay(oArea);
}