FreeRect

Category: Landscape
Since engine version: 5.1 OC

Description

Removes all material within the specified rectangle. Coordinates are always global. Excluding the right and lower limits of the rectangle.

Syntax

void FreeRect(int x, int y, int width, int height, int density);

Parameters

x:
Left limit of the rectangle
y:
Top limit of the rectangle
width:
Width of the rectangle
height:
Height of the rectangle
density:
If specified, material of the specified density is removed.

Remark

This call may take quite a while for large rectangles.

Example

FreeRect(0, 0, LandscapeWidth(), LandscapeHeight());
Empties the complete landscape.
See also: DigFree, DigFreeRect, Explode
Sven2, 2001-11
Clonkonaut, 2008-04