ExtractLiquid

Category: Landscape / Material
Since engine version: 1.0 OC

Description

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.

Syntax

int ExtractLiquid(int x, int y);

Parameters

x:
[opt] X position at which material is extracted. Offset in local calls.
y:
[opt] Y position at which material is extracted. Offset in local calls.

Example

var mat=ExtractLiquid();
if (mat!=-1) InsertMaterial(mat,0,-100)
Sucks up one pixel of liquid and reinserts it 100 pixel further above.
See also: ExtractMaterialAmount, GBackLiquid, InsertMaterial
Sven2, 2001-11