Kategorie: Landschaft
/ Material Ab Engineversion: 5.1 OC
Beschreibung
Extrahiert eine bestimmte Menge des gleichen Materials an einer Stelle. Zurückgegeben wird die tatsächlich erfolgreich extrahierte Materialmenge.
Syntax
int ExtractMaterialAmount(int x, int y, int material_index, int amount, bool distant_x);
Parameter
x:
X-Position, an der Material extrahiert wird. Offset bei lokalem Aufruf.
y:
Y-Position, an der Material extrahiert wird. Offset bei lokalem Aufruf.
material_index:
Index des Materials, das extrahiert wird. Siehe dazu auch Material.
amount:
Maximale Menge, die extrahiert wird
distant_x:
[opt]
If true, material will be extracted at the most distant horizontal position of the top row of the material body, to a maximum of the material's MaxSlide parameter. If used on liquids, this mode ensures that level pools of 1px height can be extracted by extracting from anywhere horizontally.