Welcome to the BF Forums! Register Now, It's Free!
Welcome to the BF Forums; your source for the latest video game news, strategies, discussions, and resources. Join over 66,000 like-minded gamers to chat about your interests in our community.
You are currently viewing the forums as a guest user, which limits your access to certain content, contests, downloads, and more. By joining our free community, you will be able to respond in discussions/articles, contact members privately (PM), participate in regular-scheduled contests, see less advertisements, and have access to many other features. Registration is quick, easy, and completely free. Whatever your game interest may be, you'll find information here where people realize that games are more than just poker online.
Have your questions answered. Share your thoughts about a topic. Take 2 minutes, Register Now!
I downloaded and imported .wav files into my map of sound effects such as a shotgun, sniper rifle, etc. to use as sounds in place of the normal unit attack sounds. It worked great testing it. I made a trigger kind of like this: Event-(Unit is attacked) Condition-(unit type of (attacking unit)) equal to (sniper) Action-(Play Music Theme (war3imported\snipergun.wav)) or whatever the file name of the sound is. This worked but the sounds could be heard across the entire map by all players. I noticed the only way to set a cutoff distance was for sound type variables...so i made a sound variable and as a map initialization i played the .wav file and did Set Variable (FX_Sniper) = last played sound. I replaced the Play Music Theme action in the trigger written above with Play sound (FX_Sniper) but it doesnt work..i tried everything. Anyone know how to get this to work?