Initial Commit
Initial Commit
This commit is contained in:
14
_module/nss/mus_playsetsong.nss
Normal file
14
_module/nss/mus_playsetsong.nss
Normal file
@@ -0,0 +1,14 @@
|
||||
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);
|
||||
}
|
Reference in New Issue
Block a user