• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

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