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

[Trigger] Fixing Sound leak

Status
Not open for further replies.
I made a sound system for that in vjass

[JASS="Usage Example:"]

globals
string SounD = ""MetalHeavySliceMetal""
endglobals

//! runtextmacro RegisterSound("BS","60","SounD")

function SomeFunction takes nothing returns nothing
call PlayBS(x,y,z)
endfunction[/code]

this is only for sound labels and they need to be 3D sound

1st value of macro ("BS" is function tag)
2. ("60") is maximum number of handles for that label
3. ("SounD") variable for sound

I made it variable name instead of label itself because for setups most people use global variables so it gets easy to change everything in a single part of code
 
Last edited:
Status
Not open for further replies.
Back
Top