- Joined
- Aug 16, 2004
- Messages
- 6
I am new not only to this forum but also to JASS, so I wills tart off by saying howdy to you all. What I am trying to accomplish is setting msuic upon rentering a new region for specific players. For example, Say Player 2 enters Stone Hills, but Player 3 is in Marsh Pits, I would want Player 2 to hear Stone Hills music, and Player 3 to hear Marsh Pits music. I found a JASS script thing for this but I don't quite understand it.
function PlaySoundForPlayer takes player whichPlayer, sound whichSound returns nothing
if ( whichPlayer == GetLocalPlayer() ) then
call PlaySoundBJ( whichSound )
endif
endfunction
function PlaySoundForPlayer takes player whichPlayer, sound whichSound returns nothing
if ( whichPlayer == GetLocalPlayer() ) then
call PlaySoundBJ( whichSound )
endif
endfunction