RegionClearRect

Parameters
whichRegion region

The region to be modified.

r rect

The rect whose cells to remove.

comment

Removes the cells of a rect from a region.

note

Cells are 32x32 world units and aligned with multiples of 32 in each direction (smallest grid in World Editor).

note

The current cells of the rect are removed. Changing the rect afterwards has no effect on the region.

bug

An extra row and column of cells in positive x and y direction is removed. E.g., if the rect is [minX=0, minY=0, maxX=96, maxY=96], the region will lose cells spanning the area [minX=0, minY=0, maxX=128, maxY=128]. This is reflected in IsPointInRegion, IsUnitInRegion, TriggerRegisterEnterRegion and TriggerRegisterLeaveRegion.

patch

1.00

Source
common.j
return type
nothing
Source code
native RegionClearRect          takes region whichRegion, rect r returns nothing