ExtractLiquid

Category: Landscape / Material
Since engine version: 4.6.5.0 CP

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 iX, int iY);

Parameters

iX:
[opt] X position at which material is extracted. Offset in local calls.
iY:
[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, November 2001