Jump to content
Sign in to follow this  
tryteyker

Referencing sound from configFile in missionConfigFile

Recommended Posts

Hi,

 

slight inconvenience here: I'm trying to get a CfgMusic entry "ported over" to CfgSounds so I can use it with playSound3D etc, but I'm kinda stuck when it comes to referencing the sound. I've got the relative path from configFile, but that doesn't really help me since missionConfigFile is always starting from description.ext and not the specific mod folder I'm looking at. I'd like to avoid using absolute paths because that absolute path is probably different for 30+ people, but I'm assuming there's no other way to reference it. At that point I guess I might aswell rip the .ogg out of the modset and place it in my mission, even if it makes the file size explode.

 

Example config path:

 

\RHNET\Thirsk5\music\sova.ogg

 

But again, doesn't really work when using it with CfgSounds in description.ext.

 

-

 

https://community.bistudio.com/wiki/Description.ext#CfgSounds

 

In my defense, I'm absolutely terrible at reading the most relevant docs :P

 

 

 

Since Arma 3 v1.49.131710 it is possible to define AddOn sounds in mission config. In order to make engine look for the sound in AddOn, the sound path must start with @ (instead of \) for example:

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×