GBackSolid

Category: Landscape / Material
Since engine version: 4.6.5.0 CP

Description

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

Syntax

bool GBackSolid (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(GBackSolid(GetX(obj)-GetX(),GetY(obj)-GetY())) SetPosition(GetX(obj),GetY(obj)-1,obj);
This snippet of script moves a rock upwards so it rests on top of solid matter.
See also: GBackLiquid, GBackSemiSolid, GBackSky, GetMaterial
Günther, April 2002