• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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:
 
Level 28
Joined
Feb 18, 2014
Messages
3,580
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
 
Level 4
Joined
Nov 17, 2015
Messages
91
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?
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,207
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.
 

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,184
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.
Top