• 🏆 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!

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

Status
Not open for further replies.
Level 3
Joined
May 17, 2019
Messages
45
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 !
 

Uncle

Warcraft Moderator
Level 64
Joined
Aug 10, 2018
Messages
6,578
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:
Status
Not open for further replies.
Top