Arma 3
Mx. Amber Jan 8, 2020 @ 2:05pm
playing default weapon sounds
I need to play the sound of a stock weapon via script. I thought it seemed easy enough, look up the sound name in the config viewer, feed it into playSound, done. Except in the config viewer, the CfgSounds only has a tiny selection of sounds and I couldn't find them anywhere else either. Any help?
Originally posted by Hortzy:
weapons sounds are fed directly into class cfgWeapons, under the appropriate classname of course.
However they don't use sound classnames either, so using playSound will not work.
You'll have to use playSound3d

https://community.bistudio.com/wiki/playSound3D
playSound3D ["A3\sounds_f\weapons\mx\mx-st-full-1.wss", player];
< >
Showing 1-4 of 4 comments
The author of this thread has indicated that this post answers the original topic.
Hortzy Jan 8, 2020 @ 2:15pm 
weapons sounds are fed directly into class cfgWeapons, under the appropriate classname of course.
However they don't use sound classnames either, so using playSound will not work.
You'll have to use playSound3d

https://community.bistudio.com/wiki/playSound3D
playSound3D ["A3\sounds_f\weapons\mx\mx-st-full-1.wss", player];
Mx. Amber Jan 8, 2020 @ 2:52pm 
Originally posted by Hortzy:
weapons sounds are fed directly into class cfgWeapons, under the appropriate classname of course.
However they don't use sound classnames either, so using playSound will not work.
You'll have to use playSound3d

Where'd you find the full sound? If I look at any weapon in the CfgWeapons, I only find them cut into pieces as Begin and Closure.
Last edited by Mx. Amber; Jan 8, 2020 @ 2:52pm
Hortzy Jan 8, 2020 @ 3:23pm 
well, i don't think arma uses those base sound files anymore (Or if they ever did? maybe they're just the base sounds they used for generating the ones located inside CfgWeapons).
It seems cfgWeapons uses sounds located in the "arsenal" folder.
"a3\sounds_f\arsenal\weapons\rifles\mx\mx_short_01.wss" would be the equivalent to "A3\sounds_f\weapons\mx\mx-st-full-1.wss" more or less.

I just played back both sound files and they were identical. Maybe just a second shorter.

So in short you can use the sound file posted within the begin1[] begin2[] etc aswell
Hortzy Jan 8, 2020 @ 3:28pm 
and to answer your first question.
I have the entire game unpacked in a project drive for terrain creation and mod making.
So its fairly easy for me to browse through the game files without using a config viewer
< >
Showing 1-4 of 4 comments
Per page: 1530 50

Date Posted: Jan 8, 2020 @ 2:05pm
Posts: 4