Playing A Sound For One Player

xxxtrickyxxx

(o Y o)
Reaction score
64
I want to play a sound for a certain player and not everyone so I found this jass script but I dont know what to call.

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

I know where to put that, but I dont know what to put in the custom script action.
 
D

Dino.pl

Guest
Code:
custom script: call PlaySoundForPlayer(player, sound)
Replace player and sound with whatever you want.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top