Function SelectUnitForPlayerSingle

Line
3582
Location
blizzard.j
Constant?
no
Type
function
Arguments
unit whichUnit, player whichPlayer
Returns
nothing
3582
function SelectUnitForPlayerSingle takes unit whichUnit, player whichPlayer returns nothing
3583
    if (GetLocalPlayer() == whichPlayer) then
3584
        // Use only local code (no net traffic) within this block to avoid desyncs.
3585
        call ClearSelection()
3586
        call SelectUnit(whichUnit, true)
3587
    endif
3588
endfunction