GBackSemiSolid

Category: Landscape / Material
Since engine version: 4.6.5.0 CP

Description

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

Syntax

bool GBackSemiSolid (int iX, int iY);

Parameters

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

Example

var obj=FindObject(ROCK);
while(GBackSemiSolid(GetX(obj)-GetX(),GetY(obj)-GetY())) SetPosition(GetX(obj),GetY(obj)-1,obj);
This script moves a rock to the surface.
See also: GBackLiquid, GBackSky, GBackSolid, GetMaterial, InLiquid
Günther, April 2002