Category: Landscape / Material
Since engine version: 1.0 OC
Sucks up one pixel of liquid at the specified position. Return value is the material number of the material actually extracted, or -1 if no liquid was there.
int ExtractLiquid(int x, int y);
- [opt] X position at which material is extracted. Offset in local calls.
- [opt] Y position at which material is extracted. Offset in local calls.
var mat=ExtractLiquid(); if (mat!=-1) InsertMaterial(mat,0,-100)
Sucks up one pixel of liquid and reinserts it 100 pixel further above.