• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Stopping a sound

Status
Not open for further replies.
Level 4
Joined
Sep 15, 2013
Messages
53
I have this:
Event: whenever a unit dies
Condition: if the dying unit is a hero
Action: a sound will play.
But i want to stop the sound from playing, once the hero respawns. I wanna ask how can i achieve this? Can someone help me. Thanks!
 
For some reason the topic creator decided to PM me instead of replying to the thread. For this reason I have created a bump.

There should be an action to stop a sound playing. When hero revives you run that action on the sound. The sound should be stored in a variable and reused.

Attached is a demo map showing how one can play and stop sounds. Type "play" to start the sound and "stop" to stop it.
 

Attachments

Status
Not open for further replies.
Back
Top