Can you explain some of this? I seriously have no idea what half of JASS is. Seriously takes? Takes player? What the fuck is that shit?
PlaySoundForPlayer
not ratedUseful for when you only want 1 player to hear the sound. Doesn't desync.
function PlaySoundForPlayer takes player whichPlayer, sound whichSound returns nothing
if ( whichPlayer == GetLocalPlayer() ) then
call PlaySoundBJ( whichSound )
endif
endfunction