Warcraft III resources & community, 2003–2006 · archived

PlaySoundForPlayer

not rated
Submitted by AltSubmitterFunctions0 downloads
Useful for when you only want 1 player to hear the sound. Doesn't desync.

Source

function PlaySoundForPlayer takes player whichPlayer, sound whichSound returns nothing
    if ( whichPlayer == GetLocalPlayer() ) then
        call PlaySoundBJ( whichSound )
    endif
endfunction

Comments

1
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?