Attacking sound

Status
Not open for further replies.
Level 2
Joined
Dec 23, 2009
Messages
19
How do i make a trigger that plays a certain sound when it attacks for a certain unit. For example, i want the snipers only for every player in the map to play the sound i have set up for it.
 
Level 13
Joined
Sep 14, 2008
Messages
1,408
I don't think you can change attack sounds in the object editor.
As far as I remember you can only change the attack type which results in a different sound.

The easiest solution would be:

Event: Unit is attacked
Condition: Attack unit = ChoseYourself
Actions: Play sound at position of attacking unit.

But the problem is that the event "is attacked" triggers when the unit starts attacking not when the target is actually hit.
 
Level 2
Joined
Dec 23, 2009
Messages
19
I know, im trying to figure out how to get a sound to play when a unit attacks. The problem with your solution (correct me if im wrong) is that if i choose a unit it has to be a unit the map, and i want this unit to play the sound for everyone who has the unit. It wont let me attach the sound to the unit itself, it would only attach if the unit was on the map, and it would only work for that unit.
 
Level 2
Joined
Dec 23, 2009
Messages
19
ACtually nevermind i got it, but when i got a bunch of them attacking, it only plays 1 animation, how can i make it so it plays all of the sounds . Meaning, if i have 12 firebats and they attack at different times i want 12 sounds to be played at the time, whats happening is 6 willl attack within 2 seconds at different points but it only plays 1 sound.
 
Level 9
Joined
Nov 4, 2007
Messages
933
That is unfortunately not possible with playing the sound via trigger, the thing is the sounds played via triggers can only be referenced one at a time, you'd have to actually replace the in game attack sound with the sound you wanted.
 
Level 2
Joined
Dec 23, 2009
Messages
19
Umm, How do i replace the ingame attack sound? I dont see anything inside the sound editor to do that
 
Level 2
Joined
Dec 23, 2009
Messages
19
O god i figured it out, when i had some unit sounds replaced for example the ghoul, ghouls dont have an attack sound because there melee. So i should give my custom units, unit sounds that sound from ranged units.
 
Level 2
Joined
Dec 23, 2009
Messages
19
Umm ... i replaced the attacking sound for rifleman and it plays for the rifleman unit, but i
when attack with ghost it does not play it...
 
Status
Not open for further replies.
Top