Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //For Vanilla, CUP, and custom
- //Essential because after load game will stop any music from playing. Checks once for combat environment, then plays relevant song after which main script kicks in.
- addMusicEventHandler ["MusicStop", {musicBooleanStop = true}];
- _randomCalmDay = selectRandom dayCalmAmbient;
- _randomCalmNight = selectRandom nightCalmAmbient;
- _randomAction = selectRandom actionAmbient;
- if (detectionBoolean isEqualTo true) then
- {
- playMusic _randomAction;
- } else
- {
- if (dayTime < 19) then {playMusic _randomCalmDay;} else {playMusic _randomCalmNight;};
- };
Add Comment
Please, Sign In to add comment