GBackSky

Category: Landscape / Material
Since engine version: 4.6.5.0 CP

Description

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

Syntax

bool GBackSky (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(!GBackSky(GetX(obj)-GetX(),GetY(obj)-GetY())) SetPosition(GetX(obj),GetY(obj)-5,obj);
Moves a rock into fresh air.
See also: GBackLiquid, GBackSemiSolid, GBackSolid, GetMaterial
Günther, April 2002