shiFt
Member
- Reaction score
- 8
Im trying to destroy trees around a unit that is moving however having no success, ive posted what im using, What am I doing incorrectly?
JASS:
private function TreeConditions takes nothing returns boolean
return GetDestructableLife(GetEnumDestructable()) > .405
endfunction
private function KillTrees takes nothing returns nothing
call KillDestructable( GetEnumDestructable() )
endfunction
JASS:
call MoveRectTo(r,d.x,d.y)
call EnumDestructablesInRect(r, function TreeConditions ,function KillTrees)