HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Sound for Team

03-23-2006, 02:32 AM#1
ixmike88
Is it possible for only a certain team or playergroup to hear a sound?
03-23-2006, 05:50 AM#2
Blade.dk
Do something like this:

Collapse JASS:
    if GetLocalPlayer() == yourPlayer then
        call StartSound(yourSound)
    endif

Or this:

Collapse JASS:
    if IsPlayerInForce(GetLocalPlayer(), yourForce) then
        call StartSound(yourSound)
    endif

It should work, just remember to create the sound outside the if statement.