• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 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