GBackLiquid

Category: Landscape / Material
Since engine version: 4.6.5.0 CP

Description

Checks whether there is liquid at the specified position in the landscape.

Syntax

bool GBackLiquid (int iX, int iY);

Parameters

iX:
X coordinate. Offset in local calls
iY:
Y coordinate. Offset in local calls

Example

var obj=FindObject(ROCK);
if(GBackLiquid(GetX(obj)-GetX(),GetY(obj)-GetY()-10)) Explode(obj);
If this rock is underwater it explodes.
See also: GBackSemiSolid, GBackSky, GBackSolid, GetMaterial, InLiquid
Günther, April 2002