PanCameraToLocForPlayer

Parameters
whichPlayer player
loc location
comment
patch

1.00

Source
Blizzard.j
return type
nothing
Source code
function PanCameraToLocForPlayer takes player whichPlayer, location loc returns nothing
    if (GetLocalPlayer() == whichPlayer) then
        // Use only local code (no net traffic) within this block to avoid desyncs.
        call PanCameraTo(GetLocationX(loc), GetLocationY(loc))
    endif
endfunction