function PlaySoundOnUnitBJ takes sound soundHandle, real volumePercent, unit whichUnit returns nothing
call AttachSoundToUnitBJ(soundHandle, whichUnit)
call SetSoundVolumeBJ(soundHandle, volumePercent)
call PlaySoundBJ(soundHandle)
endfunction
function PlaySoundAtPointBJ takes sound soundHandle, real volumePercent, location loc, real z returns nothing
call SetSoundPositionLocBJ(soundHandle, loc, z)
call SetSoundVolumeBJ(soundHandle, volumePercent)
call PlaySoundBJ(soundHandle)
endfunction
function PlaySoundBJ takes sound soundHandle returns nothing
set bj_lastPlayedSound = soundHandle
if (soundHandle != null) then
call StartSound(soundHandle)
endif
endfunction
function SoundAtLoc takes sound s location l returns nothing
call SetSoundPosition(s,GetLocationX(l),GetLocationY(l),0)
call StartSound(s)
endfunction
local unit u = GetSpellAbilityUnit()
local location l = GetUnitLoc(u)
call SoundAtLoc(gg_snd_WhatSoundYouWant, l)
set u = null
call RemoveLocation(l)
set l = null