Rubzen 1 Posted August 25, 2019 Hey everyone! I really want to add a radio to vehicles in the scenario i'm currently working on. Right now you can spam the add action "MUSIC ON" in-game multiple times and the song overlaps, i would also like a option to turn the music off. I've searched for something simple that is community made with zero dependencies but to no avail. Would appreciate if anyone could lend a hand, the least i can do is give credit to you in the scenario on steam workshop 🙂Description.ext class CfgSounds { sounds[] = {}; class dangerzone { name = "dangerzone"; sound[] = {"music\dangerzone.wav", 300, 1}; titles[] = {0,""}; }; };Init in vehicle h1 addAction [ "MUSIC ON" , { h1 say3D [ "dangerzone", 5, 1]; } ]; Share this post Link to post Share on other sites
Dedmen 2721 Posted September 3, 2019 On 8/25/2019 at 9:16 PM, Rubzen said: Right now you can spam the add action "MUSIC ON" in-game multiple times and the song overlaps Set a variable on start with the current time. Then on next start check if last start + length of song is bigger than current time, to check whether last play is already over. On 8/25/2019 at 9:16 PM, Rubzen said: i would also like a option to turn the music off https://community.bistudio.com/wiki/say3D Read the note in the description, the comments at the bottom, and example 2. Be warned that cross/double posting is against our forum rules. Share this post Link to post Share on other sites