1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. The Lich King demands your service! We've reached the 19th edition of the Icon Contest. Come along and make some chilling servants for the one true king.
    Dismiss Notice
  4. The 4th SFX Contest has started. Be sure to participate and have a fun factor in it.
    Dismiss Notice
  5. The poll for the 21st Terraining Contest is LIVE. Be sure to check out the entries and vote for one.
    Dismiss Notice
  6. The results are out! Check them out.
    Dismiss Notice
  7. Don’t forget to sign up for the Hive Cup. There’s a 555 EUR prize pool. Sign up now!
    Dismiss Notice
  8. The Hive Workshop Cup contest results have been announced! See the maps that'll be featured in the Hive Workshop Cup tournament!
    Dismiss Notice
  9. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

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

Discussion in 'World Editor Help Zone' started by Volsungh, Jun 15, 2019.

  1. Volsungh

    Volsungh

    Joined:
    May 17, 2019
    Messages:
    14
    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:
    438
    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