kelgram 10 Posted January 19, 2015 I have added some diary notes to my briefing screen and was wondering if there is a way to play an audio file when the player is on that screen. This would be ideal as it means the player can hear an audio description of the mission objectives rather than listen to them in the game were there are other distractions. Share this post Link to post Share on other sites
serion 11 Posted January 20, 2015 In your description.ext add the following class if it's not there already. class CfgSounds{ // List of sounds (.ogg files without the .ogg extension) sounds[] = {intro}; // Definition for each sound class intro { // Name for mission editor name = "MissionAudioDesc"; //Path of the .ogg file. since it's in the same folder just use the filename sound[] = {intro.ogg, 1, 1.0}; titles[] = {}; }; }; The soundfile to use must be a .ogg, use audacity to convert. put it in the root of your mission folder. As far as I know there isn't a hook that's called each and every time the diary is opened, (unless it does literally '[] execVM "briefing.sqf";' every time it's opened). I reckon you could use addAction to add a scroll wheel menu with 'Mission Briefing' or 'SitRep'. You can have addAction open the diary and execute the sound file. Then you'd probs need to add a check loop to stop the file if the diary window was closed or it would keep playing... Or just have the sound play as the player first joins... (EASY MODE) Go into init.sqf and find where the player spawns. Maybe yours looks something like; if (!isDedicated) then { [] spawn { Add playSound "MissionAudioDesc"; In them brackets. Sound will load every time player first spawns into server. If you use this method and have regular returning players; I advise you keep the audio short and try and make it humerus. Better still change it once a week if you can. You can use this method to add intro music instead of the mission briefing. At the moment we have the top gun 'Danger Zone' theme playing. ;) Share this post Link to post Share on other sites
kelgram 10 Posted January 20, 2015 In your description.ext add the following class if it's not there already.The soundfile to use must be a .ogg, use audacity to convert. put it in the root of your mission folder. As far as I know there isn't a hook that's called each and every time the diary is opened, (unless it does literally '[] execVM "briefing.sqf";' every time it's opened). I reckon you could use addAction to add a scroll wheel menu with 'Mission Briefing' or 'SitRep'. You can have addAction open the diary and execute the sound file. Then you'd probs need to add a check loop to stop the file if the diary window was closed or it would keep playing... Or just have the sound play as the player first joins... (EASY MODE) Go into init.sqf and find where the player spawns. Maybe yours looks something like; Add In them brackets. Sound will load every time player first spawns into server. If you use this method and have regular returning players; I advise you keep the audio short and try and make it humerus. Better still change it once a week if you can. You can use this method to add intro music instead of the mission briefing. At the moment we have the top gun 'Danger Zone' theme playing. ;) Thanks, its an individual briefing per mission. If you have ever played the old Rainbow Six or Ghost Recon games, they used to have an audio briefing along with a text briefing for the mission. Then you would go into the Kit / Squad selection and after that you would start the mission. That is what I am aiming for: https://www.youtube.com/watch?v=idx4bVB4FXQ Share this post Link to post Share on other sites