• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Sound play forever near an unit

Status
Not open for further replies.

hdm

hdm

Level 9
Joined
Nov 19, 2011
Messages
384
How to make a sound/music play forever attached on an unit ? ATM I use Trigger

Event - Every 1 second
Conditions - (Nothing)
Actions - Play sound attached on unit

But I was just wondering, Is there another way to do it ? Like on every unit of one type ?
 
Level 25
Joined
Sep 26, 2009
Messages
2,378
You could create your own custom efx.
Create new efx (or copy and paste existing one and edit it) so it doesn't show any visual effect, leave its play animation and make it loop. Then add sound effect to this "model".
Basically you will have model with no planes that will just loop "stand" animation and you set up that when "stand" animation is played a sound effect is played as well.

Save model, import it. Then attach the model to the unit.
This way you can attach this model to multiple units or all units of some unit type, etc. without having to use periodic loop trigger (which may be ineffective) or editing the model themselves.


You could look at model of some missile to see how it works - these models use one sound effect for when the model plays "stand" animation and other sound when it player "death" animation. For example the Druid of the Talon missile.
 
  • Like
Reactions: hdm
Status
Not open for further replies.
Top