-
March 26, 2025 at 18:20 #5019
[quote quote=5017]Hey everyone, I need some help understanding how to play two sound files at the same time in Joint Ops, if it’s even possible. I’m working on a single-player map and want to have both music and other sound effects playing simultaneously. The problem is that when using raw .wav files, one won’t start until the other finishes. So far, I’ve tried creating a .dbf file with a Dialogue Editor and triggering it through an event in Med ‘Play Dlg’ , but the game doesn’t seem to read them. I also attempted modifying a .lwf file by adding custom sound sets, but I’m not sure how to get that working either. I’ve seen maps in both Joint Ops and DFBHD that manage to do this, so there must be a way. Does anyone know how to get it working? Any help would be appreciated! [/quote]
Hi Nova,
In my experience when I did mapmaking, which was for COOP and in NILE, I was not able to trigger multiple custom wav files at the same time using the wac command.
Like:
wave(“sfx_bird04.wav”,255)I was able to play one after another instead.
In order not to interrupt a wave currently playing, you can use waveready() to check if the game is ready to play it.However maybe you can play multiple wave files if you attach the wave to multiple objects in the game that are on the same location.
Check out this thread for more information on how to do that:
Latest 10 Comments