.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   TO&Es (http://forum.shrapnelgames.com/forumdisplay.php?f=108)
-   -   weapon sound files. (http://forum.shrapnelgames.com/showthread.php?t=50772)

Duzmond April 24th, 2015 02:40 PM

weapon sound files.
 
Is there any way to assign a sound file to a specific unit?

I have a situation where I have two units, a headquarters and a militia group. I have equipped them with AK47 rifles,yet they have different sound effects. The headquarters unit had AK74 rifles originally. Is it possible it is still using the AK74 sound when firing the AK47?

scorpio_rocks April 24th, 2015 03:25 PM

Re: weapon sound files.
 
There are 3 places weapon sounds can be set and they have an order of precidence:

The .ini sets the "Default" sound this can be overridden by the weapon's sound field in the relevant unit (in the units tab mobhack), which in turn can be overidden by the weapon sound (sound field in the weapon tab in mobhack). If any field has a 0 in it then it defaults to the next lower level - ie wpn>unit>default.

Hope this helps track down your wayward sounds :)

See THIS thread


All times are GMT -4. The time now is 07:36 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.