|
楼主 |
发表于 2008-12-28 12:53:24
|
显示全部楼层
function SelectUnitForPlayerSingle takes unit whichUnit, player whichPlayer returns nothing
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
虽然GetLocalPlayer() ,不过似乎。。。不应该才对。 |
|