void CountDestsEnum() { if GetDestructableLife(GetEnumDestructable())> 0 { KillDestructable(GetEnumDestructable()) } } void CountDests(real x, real y, real rad) { rect r = Rect(-rad,-rad,rad,rad) MoveRectTo(r,x,y) EnumDestructablesInRect(r, null, function CountDestsEnum) RemoveRect(r) r = null }
void CountDestsEnum() { if GetDestructableLife(GetEnumDestructable())> 0 { KillDestructable(GetEnumDestructable()) } } void CountDests(real x, real y, real rad) { rect r = Rect(-rad,-rad,rad,rad) MoveRectTo(r,x,y) EnumDestructablesInRect(r, null, function CountDestsEnum) RemoveRect® r = null }
А как запускать такую функцию ? Мне нужно ее запускать лишь с двумя значениями: Точка и Радиус.