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

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 28
Joined
Sep 26, 2009
Messages
2,520
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