|
function monsterMove takes nothing returns nothing
local location la=GetUnitLoc(GetEnumUnit())
local location lb
local boolean bl=false
loop
exitwhen bl
set lb=GetRandomLocInRect(RectFromCenterSizeBJ(la, 500.00, 500.00))
if (IsTerrainPathableBJ(lb, PATHING_TYPE_WALKABILITY) == false) then 说是什么名字错误.....
set bl=true
endif
endloop 这里说少endloop
if ( monsterRandom() ) then
call IssuePointOrderLoc( GetEnumUnit(), "AImove",lb )
endif
endfunction
J好难用啊... |
|