Call of Duty: Black Ops 3 => Help Desk => Scripting => Topic started by: Tomzen on October 09, 2016, 05:49:42 am
Title: How to add custom sounds?
Post by: Tomzen on October 09, 2016, 05:49:42 am
Hi, I want to be able to add custom sounds, but I don't really understand the "user_aliases.csv" file, how can I make it so a file located in my usermaps/zm_mapname/sound directory plays once, and once only at 100% volume. Double Post Merge: October 09, 2016, 06:27:01 amI already have:
And it's being activated with:
However when I go into my map and purchase it, the sound dosen't play.
I've also tried:
Title: Re: How to add custom sounds?
Post by: wumbi on October 10, 2016, 12:01:18 am
You have the sound file in the wrong location. It should be in root/sound_assets/[any folder name you want]/ In your user_aliases.csv file, paste the following on a new line:
In the playsound code, use the sound alias you made.
Title: Re: How to add custom sounds?
Post by: wumbi on October 10, 2016, 12:01:47 am
Also, get rid of the brackets in the example.
Title: Re: How to add custom sounds?
Post by: CovertGunman on October 10, 2016, 04:57:37 am
You could try this:
instead of
I also found too that if you encounter an error pop up in relation to your alias file when compiling the map then it doesn't allow the alias file to work at all. SO double check that.
Title: Re: How to add custom sounds?
Post by: Tomzen on October 11, 2016, 09:19:05 am
You have the sound file in the wrong location. It should be in root/sound_assets/[any folder name you want]/ In your user_aliases.csv file, paste the following on a new line:
In the playsound code, use the sound alias you made.
Hey how do I add a second sound? I copied the exact same thing and pasted it on the second line but changed the file location and alias, but it dosen't work: