- Joined
- Oct 6, 2016
- Messages
- 4
There seems to be sound issues in reforged from maps coded in 1.26. I think the bug has something to do with PlaySoundOnUnitBJ.
function PlaySoundExFollowUnit takes string filePath,unit u,boolean isLoop,boolean is3D,integer volume,integer minRange,integer maxRange returns sound
set bj_lastPlayedSound=CreateSound(filePath,isLoop,is3D,true,minRange,maxRange,"Default")
call SetSoundDistanceCutoff(bj_lastPlayedSound,10000000.)
call PlaySoundOnUnitBJ(bj_lastPlayedSound,volume,u)
call StartSound(bj_lastPlayedSound)
"All Sounds are silent using this function."
call PlaySoundExFollowUnit("war3mapImported\\raohRW.mp3",LoadUnitHandle(YDHT,GetHandleId(GetExpiredTimer()),$437E2A40),false,false,127,5000,6000)
This sound does not work.
Deleting PlaySoundOnUnitBJ actually makes these sounds work which is a pretty weird bug.
function PlaySoundExFollowUnit takes string filePath,unit u,boolean isLoop,boolean is3D,integer volume,integer minRange,integer maxRange returns sound
set bj_lastPlayedSound=CreateSound(filePath,isLoop,is3D,true,minRange,maxRange,"Default")
call SetSoundDistanceCutoff(bj_lastPlayedSound,10000000.)
call PlaySoundOnUnitBJ(bj_lastPlayedSound,volume,u)
call StartSound(bj_lastPlayedSound)
"All Sounds are silent using this function."
call PlaySoundExFollowUnit("war3mapImported\\raohRW.mp3",LoadUnitHandle(YDHT,GetHandleId(GetExpiredTimer()),$437E2A40),false,false,127,5000,6000)
This sound does not work.
Deleting PlaySoundOnUnitBJ actually makes these sounds work which is a pretty weird bug.