• 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.

I need help with a trigger...

Status
Not open for further replies.
Level 2
Joined
Jul 3, 2008
Messages
16
I need help, with playing a sound, whenever a type of unit attacks.
I just can't figure it out, :confused:
Someone please help me soon, i want to continue on my map.
 
Level 5
Joined
Jul 12, 2007
Messages
113
I'd be glad to help you, but your post here doesn't tell me anything about your problem. Please clarify your problem so i can help you solve it.
If all you need is a trigger which plays a sound whenever a unit type attacks, this might help you:

  • Sound
    • Ereignisse
      • Einheit - A unit Wird angegriffen
    • Bedingungen
      • (Unit-type of (Attacking unit)) Gleich unittype
    • Aktionen
      • Sound - Play sound
 
Level 6
Joined
May 3, 2009
Messages
214
I'd be glad to help you, but your post here doesn't tell me anything about your problem. Please clarify your problem so i can help you solve it.
If all you need is a trigger which plays a sound whenever a unit type attacks, this might help you:

  • Sound
    • Ereignisse
      • Einheit - A unit Wird angegriffen
    • Bedingungen
      • (Unit-type of (Attacking unit)) Gleich unittype
    • Aktionen
      • Sound - Play sound

I translated it in english cause he might not understand it

  • Unit Attack Sound
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Unit-type of (Attacking unit)) Equal to Unit
    • Actions
      • Sound - Play Sound
 
Level 2
Joined
Jul 3, 2008
Messages
16
thanks alot, but i can't get it to say, unit, after it says, equal to;
(unit-type of (attacking unit)) Equal to: ??!?!?!
it wont let me put, just unit
:angry:
 
Level 3
Joined
Jul 3, 2009
Messages
31
  • Unit Attack Sound
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Unit-type of (Attacking unit)) Equal to <The "kind of" unit you want the sound to come from.>
    • Actions
      • Sound - Play Sound <what sound you want to hear when the unit attacks
If you want to hear the sound REGARDLESS what unit attacks, dont put any condition anymore so it becomes:


  • Unit Attack Sound
    • Events
      • Unit - A unit Is attacked
    • Conditions
    • Actions
      • Sound - Play Sound <what sound you want to hear when the unit attacks
Hope this helps. :p
 
Last edited:
Status
Not open for further replies.
Top