xgamer224 1 Posted July 9, 2014 Alright, so my overall goal is to make a gui that can be used for administrators so that they can play various audio files for the server to hear. at this point, i am having trouble getting the audio files to play for me to hear.. i have set up several methods to hear the audio but cannot seem to get them to play.. can someone tell me what i am missing? direct download to the mission file: http://www.mediafire.com/download/0mi2tg605kzhxzv/music_script.Altis.zip Mission.sqm version=12; class Mission { addOns[]= { "A3_Characters_F_Civil", "a3_characters_f", "a3_map_altis", "A3_Soft_F_Truck" }; addOnsAuto[]= { "A3_Characters_F_Civil", "a3_characters_f", "A3_Soft_F_Truck", "a3_map_altis" }; randomSeed=2983784; class Intel { timeOfChanges=1800.0002; startWeather=0.30000001; startWind=0.1; startWaves=0.1; forecastWeather=0.30000001; forecastWind=0.1; forecastWaves=0.1; forecastLightnings=0.1; year=2035; month=6; day=24; hour=12; minute=0; startFogDecay=0.013; forecastFogDecay=0.013; }; class Groups { items=1; class Item0 { side="CIV"; class Vehicles { items=1; class Item0 { position[]={14646.847,17.91,16746.131}; id=0; side="CIV"; vehicle="C_man_polo_4_F"; player="PLAYER COMMANDER"; leader=1; skill=0.60000002; text="main"; init="player addAction [""<t color='#00cccc'>Global Radio</t>"", ""radio.sqf""];"; }; }; }; }; class Vehicles { items=1; class Item0 { position[]={14660.738,17.91,16763.408}; azimut=-57.953602; id=1; side="EMPTY"; vehicle="C_Van_01_box_F"; skill=0.60000002; text="truck"; }; }; class Sensors { items=1; class Item0 { position[]={14706.442,17.91,16729.262}; b=40; rectangular=1; activationBy="VEHICLE"; repeating=1; interruptable=1; age="UNKNOWN"; idVehicle=0; expActiv="playMusic ""song2"";"; class Effects { }; }; }; }; class Intro { addOns[]= { "a3_map_altis" }; addOnsAuto[]= { "a3_map_altis" }; randomSeed=12210987; class Intel { timeOfChanges=1800.0002; startWeather=0.30000001; startWind=0.1; startWaves=0.1; forecastWeather=0.30000001; forecastWind=0.1; forecastWaves=0.1; forecastLightnings=0.1; year=2035; month=6; day=24; hour=12; minute=0; startFogDecay=0.013; forecastFogDecay=0.013; }; }; class OutroWin { addOns[]= { "a3_map_altis" }; addOnsAuto[]= { "a3_map_altis" }; randomSeed=10909747; class Intel { timeOfChanges=1800.0002; startWeather=0.30000001; startWind=0.1; startWaves=0.1; forecastWeather=0.30000001; forecastWind=0.1; forecastWaves=0.1; forecastLightnings=0.1; year=2035; month=6; day=24; hour=12; minute=0; startFogDecay=0.013; forecastFogDecay=0.013; }; }; class OutroLoose { addOns[]= { "a3_map_altis" }; addOnsAuto[]= { "a3_map_altis" }; randomSeed=3930057; class Intel { timeOfChanges=1800.0002; startWeather=0.30000001; startWind=0.1; startWaves=0.1; forecastWeather=0.30000001; forecastWind=0.1; forecastWaves=0.1; forecastLightnings=0.1; year=2035; month=6; day=24; hour=12; minute=0; startFogDecay=0.013; forecastFogDecay=0.013; }; }; description.ext class cfgMusic { tracks[]={song1, song2}; class track1 { name="song1"; sound[] = {\music\song1.ogg, db+10, 1.0}; }; class track2 { name="song2"; sound[] = {\music\song2.ogg, db+10, 1.0}; }; }; radio.sqf hint "playing music"; playMusic "song1"; playMusic "song2"; can anyone see what im doing wrong? Share this post Link to post Share on other sites
barbolani 198 Posted July 9, 2014 try playmusic "track1"; My desc.ext, does have the tracks[]= {}; annd works. playmusic needs the class not the name. BTW radio.sqf is wrong, song1 would never play, as you inmediateley command to play "song2" Share this post Link to post Share on other sites
xgamer224 1 Posted July 9, 2014 thank you for this... it works great now Share this post Link to post Share on other sites