|
nothing RefreshTreeRect(rect TreeRect){
real MaxX=GetRectMaxX(TreeRect)
real MaxY=GetRectMaxY(TreeRect)
real MinX=GetRectMinX(TreeRect)
real MinY=GetRectMinY(TreeRect)
real Delta = 128
integer Temp_Integer
EnumDestructablesInRectAll(TreeRect, function RemoveTree )
loop
exitwhen MinX >= MaxX
loop
exitwhen MinY>=MaxY
//Temp_Integer = GetRandomInt(1, 10)
TriggerSleepAction(2.0)
BJDebugMsg(R2S(MinX)+","+R2S(MinY))
CreateDestructable( 'LTlt', MinX, MinY, 0, 1.0, 2)
set MinY=MinY+Delta
endloop
set MinX=MinX+Delta
endloop
}
语法cJass没有问题的,但是只能长出一个纵行的树。
帮忙看看吧 |
|