if (GetLocalPlayer() == GetOwningPlayer(GetTriggerUnit())) then
do something
endif
do you know any kind of jass? this would be done using local player, but im not sure if sounds cause desyncs
ie:
JASS:if (GetLocalPlayer() == GetOwningPlayer(GetTriggerUnit())) then do something endif
at least i think, i havent gotten too into it
if ( GetLocalPlayer() == GetOwningPlayer(GetTriggerUnit()) ) then
Sound - Play Error <gen>
Custom script: endif
[/wc3]
function a takes nothing returns nothing
if GetTriggerPlayer() == Player(1) then
call SetTimeOfDay( 12 )
endif
endfunction
function a takes nothing returns nothing
if GetTriggerPlayer() == Player(1) then
call SetTimeOfDay( 12 )
endif
endfunction
----->
function a takes nothing returns nothing
if GetLocalPlayer() == Player(1) then //you didnt use GetLocalPlayer in yours
call SetTimeOfDay( 12 )
endif
endfunction
if GetLocalPlayer() != Player(0) then
call SetSoundVolume(gg_snd_MySound1,0)
endif
call StartSound(gg_snd_MySound1)
nice, that's a good ideaJASS:if GetLocalPlayer() != Player(0) then call SetSoundVolume(gg_snd_MySound1,0) endif call StartSound(gg_snd_MySound1)