• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Separate attack sound

Status
Not open for further replies.
Level 4
Joined
May 1, 2011
Messages
81
Hi, guys. Its me again. I have learned how to attach sound attack to models.

But here's the problem. Let say when this unit will uses its gun to attack the ground unit, but uses missile to attack the air units. Since the model is imported, therefore I attach the machine-gun attack sound to this Apache. However, when using missiles, I can hear the Apache unnecessarily play its machine-gun firing sound, which it shouldn't happen.

So, how to make it such that the non-machine gun attack will stop playing its attached attack sound to the model?
 
hmmmmm, are you attaching it via model editing or triggers?
If it's via model editing, I believe you have to make sure it only plays during the animation for the machine gun and not the missiles animation (if it has separate anims for that, you might want to make a second anim if it doesn't that the only difference is that it plays a different sound),

If it's via triggers, you're going to want to check the target's movement category (is unit flying, etc. etc. or just check unit type) before you apply the sound to the unit, "a unit attacks a unit" works I believe, but you may have to use "specefic unit" commands with the "damages a unit" trigger for it to work correctly
 
Level 4
Joined
May 1, 2011
Messages
81
Ah never mind. I actually knew the method at last minute. I was using War3ModelEditor, so yes I was attaching via model editor.

It seems like I need to labelled one of my choosen attack animation as Attack one, while the others are Attack two. If you don't understand what my question is, look at the Human's Gyrocopter, where he will use his first animation to attack air units by bullets, while second animation to attack ground units by dropping bombs.

Case closed
 
Status
Not open for further replies.
Top