SelectUnitForPlayerSingle

Parameters
whichUnit unit
whichPlayer player
comment
patch

1.07

Source
Blizzard.j
return type
Source code
function SelectUnitForPlayerSingle takes unit whichUnit, player whichPlayer returns 
if (GetLocalPlayer() == whichPlayer) then
// Use only local code (no net traffic) within this block to avoid desyncs.
call ClearSelection()
call SelectUnit(whichUnit, true)
endif
endfunction