• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Sounds (playing more than one at the same time)

Status
Not open for further replies.
Level 17
Joined
Nov 26, 2007
Messages
1,964
Can more than one sound be played at the same time and be heard using the (play sound) trigger? Sometimes I try to play a few at the same time but instead of over lapping they just stop the previous and play the next. Which is annoying,

is there a way around this? I need sounds to be played "attached to a unit" when it attacks/moves/action/w/e
 
Well, no...

The best way though if you putting it in a marine or something, is to combine the sound into one compilation (Like about 3-8 gun shots). Then, replace the marine's attack sound with that...

In other words, compile the sounds to make gunshots... Then make the sound 3D so that you can attach it on a unit's attack sound and it will be more repetitive than before...
 
No, Make multiple sounds
store em in arrayed variable
loop
exitwhen IsSoundPlaying(<variable>[n]) == false
set n = n+1
endloop
call PlaySound(<variable>[n])

not so hard
 
I have a sound system like that in vJASS
at top of trigger you add
//! runtextmacro RegisterLabel("function tag","soundlabelstringvariable","max number of handles")

and use inside trigger like
call Play"function tag"(x,y)
 
wtf lol...

i am absolutely clueless.
i am very advanced with gui, can do basically everything.
but i have no freaking idea of how jass works.

could somebody maybe explain clearly how to get more than one sound played (overlapping sounds) with gui ? so that it works ?

please ?
 
Status
Not open for further replies.
Back
Top