polo2005
Wana start playing LoL? http://tinyurl.com/369as27
- Reaction score
- 97
can you play up a sound for only one player using getlocal player?
function PlaySoundForPlayer takes string soundName, player whichPlayer returns nothing
local sound soundHandle=CreateSound(soundName, false, false, true, 12700, 12700, "")
if GetLocalPlayer()==whichPlayer then
call StartSound(soundHandle)
endif
call KillSoundWhenDone(soundHandle)
set soundHandle=null
endfunction