Arma 3
Graev Apr 20, 2016 @ 9:57pm
How do you properly loop default A3 music? (Not custom music)
I have been wondering for awhile how to loop Arma 3's default music, preferable combined arms. For example, if you play the Tanks showcase, you'll notice that the music repeats. Thats exactly what I would like. Any help would be appreciated.
Last edited by Graev; Apr 20, 2016 @ 9:58pm
< >
Showing 1-9 of 9 comments
SeraphinicIna Apr 21, 2016 @ 4:02am 
0 = [] spawn { while{true}do { playsound "music"; sleep xyz; //where xyz the duration of the music file is }; };
Graev Apr 21, 2016 @ 4:38am 
Where do I put this?
SeraphinicIna Apr 21, 2016 @ 4:45am 
Where you need it. If you want it from the start on till the end, in the init.sqf
Hortzy Apr 23, 2016 @ 9:19am 
_ListOfTracks = ["Fallout","Wasteland","Defcon","LeadTrack01_F"]; _DelayBetweenTracks = 15; [_ListOfTracks, _DelayBetweenTracks] call BIS_fnc_music;

https://community.bistudio.com/wiki/Arma_3_CfgMusic
Graev Apr 27, 2016 @ 4:27pm 
I put a execVM in the trigger and put both your guys codeinto a sctipt. both didnt work for me.
Last edited by Graev; Apr 27, 2016 @ 4:28pm
Hortzy Apr 28, 2016 @ 2:01pm 
-create a init.sqf file, place it in your mission folder
-put code into init.sqf

init.sqf is called automatically at mission start so you dont need a trigger or anything, maybe just some conditions on when you want then music to start.




Graev Apr 28, 2016 @ 3:15pm 
I'm not trying to make it play throughout the whole mission. just when a certain trigger is activated.
SeraphinicIna Apr 28, 2016 @ 3:41pm 
then create a script, post that code into it and execute the script with execVM from the trigger
IM SORRY BUFFALO Apr 28, 2016 @ 9:47pm 
Originally posted by Graaicko:
I'm not trying to make it play throughout the whole mission. just when a certain trigger is activated.
as nobody said, create a new .sqf file(lets called it song.sqf) then open it and put the code nobody posted above in it

0 = [] spawn
{
while{true}do
{
playsound "music";
sleep xyz; //where xyz the duration of the music file is
};
};

and save it

then inside the activation on the trigger you have, put null = [this] execVM "song.sqf";
< >
Showing 1-9 of 9 comments
Per page: 1530 50

Date Posted: Apr 20, 2016 @ 9:57pm
Posts: 9