1. Join other hivers in a friendly concept-art contest. The contestants have to create a genie coming out of its container. We wish you the best of luck!
    Dismiss Notice
  2. The Melee Mapping Contest #4: 2v2 - Results are out! Step by to congratulate the winners!
    Dismiss Notice
  3. We're hosting the 15th Mini-Mapping Contest with YouTuber Abelhawk! The contestants are to create a custom map that uses the hidden content within Warcraft 3 or is inspired by any of the many secrets within the game.
    Dismiss Notice
  4. The 20th iteration of the Terraining Contest is upon us! Join and create exquisite Water Structures for it.
    Dismiss Notice
  5. Check out the Staff job openings thread.
    Dismiss Notice

Playing a unit's "Attack Weapon Sound" with trigger

Discussion in 'World Editor Help Zone' started by Volsungh, Jun 15, 2019 at 12:48 AM.

  1. Volsungh

    Volsungh

    Joined:
    May 17, 2019
    Messages:
    9
    Resources:
    0
    Resources:
    0
    Hey,

    I need to set up a trigger that will play the weapon sound of attack #1 for a unit.

    It is not possible with triggers, but maybe with GUI/JASS ?

    Anyone able to help me ?

    Thanks !
     
  2. Uncle

    Uncle

    Joined:
    Aug 10, 2018
    Messages:
    159
    Resources:
    0
    Resources:
    0
    A Unit's weapon sounds are set in the Object Editor. For example, a Footman's weapon sound is Metal Medium Slice. If we wanted to play that sound with triggers then simply find it in the sound editor, it should be under "Sound -> Units -> Combat", and choose whatever variation you want and right click it and select Use as Sound.

    Then you can play the sound with triggers.
    • Sound - Play MetalMediumSliceFlesh1 at 100.00% volume, attached to (Triggering unit)


    Also, when it comes to the sound variations, you'll notice names like MetalMediumSliceFlesh1. That is the sound the Footman would make if it hit an enemy with the Armor Type of Flesh-which is another thing you set in the Object Editor.
     
    Last edited: Jun 15, 2019 at 1:12 AM