Kategorie: Landschaft
Ab Engineversion: 1.0 OC
DigFreeRect
Beschreibung
Makes a rectangular hole in semi-solid materials. The return value is the amount of pixels that were dug free. If no_dig2objects is true, the dug out material does neither create objects according to the Dig2Objects in the *.ocm nor will the amount be stored in the internal buffer.
Syntax
int DigFreeRect(int x, int y, int width, int height, bool no_dig2objects, bool no_instability_check);
Parameter
- x:
- X-Koordinate
- y:
- Y-Koordinate
- width:
- Breite
- height:
- Höhe
- no_dig2objects:
- [opt] Prevent objects from being dug out
- no_instability_check:
- [opt] Does not perform instability checks around dug pixels, i.e. prevents surrounding single pixels and liquids from becoming loose.
Anmerkung
CreateShaft im Fahrstuhl gräbt einen Fahrstuhlschacht.
Beispiel
DigFreeRect(700, 1500, 15, 15);
Gräbt ein kleines quadratisches Loch mitten in die Landschaft.
Siehe auch: DigFree