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

[General] Music

Status
Not open for further replies.
Level 4
Joined
Nov 17, 2015
Messages
91
Hi, how do I set up a constant custom music/theme to play within a region?
I'm new to the realm of wc3 sound, and I basically want music in my town.
I also want it to stop when they leave it.
Pictures appreciated.

Thanks for the help and your time, as always. :goblin_good_job:
 
You have two choice :
1/ Event = A unit enter <RegionA>
Condition = Entering unit equal to < Your unit>
Action = Play <3D sound arround <RegionA>

If they leave!? Do action = Stop the current sound

2/ In world editor, when you select a region, you can check the configuration of this region by double-click on it, under all the function, you can add a sound to that region,so when a unit enter that region, the sound will play, and when he leave or get to far the sound stop automaticly
 
You have two choice :
1/ Event = A unit enter <RegionA>
Condition = Entering unit equal to < Your unit>
Action = Play <3D sound arround <RegionA>

If they leave!? Do action = Stop the current sound

2/ In world editor, when you select a region, you can check the configuration of this region by double-click on it, under all the function, you can add a sound to that region,so when a unit enter that region, the sound will play, and when he leave or get to far the sound stop automaticly

Wait, I just want it to not be heard when they leave the region, is that automatic?
 
Do note you cannot play music on the sound channel. Not because of technical limitations, but rather usability constraints. Custom music is fun and all but often people want to play their own music in the background, or even maybe do not want music at all. If you play any music through the sound channel then they will have to mute all in-game sound which detracts from play experience. Worse is if they have both music and sound enabled, you get a jumble of WC3 music with custom music running, a real racket!

Instead you may want to make a music system which operates using the player camera position. This then plays the appropriate music for the player based on where their camera is located. It can also handle features such as resuming the music or looping the music.
 
In world editor, when you select a region, you can check the configuration of this region by double-click on it, under all the function, you can add a sound to that region,so when a unit enter that region, the sound will play, and when he leave or get to far the sound stop automaticly
This is the easiest way by far.
Might be a bit tricky to use if your town has some odd shape but still, it's a rather solid method.
 
Status
Not open for further replies.
Back
Top