FlameConsumeMaterial

Category: Landscape
Since engine version: 4.9.7.0 CR

Description

Returns true if the material at the specified position is flammable.

Syntax

bool FlameConsumeMaterial (int iX, int iY);

Parameters

iX:
X coordinate of the second point.
iY:
Y coordinate of the second point.

Example

if(FlameConsumeMaterial(GetCursor(0)->GetX(),GetCursor(0)->GetY())) IncinerateLandscape(GetCursor(0)->GetX(),GetCursor(0)->GetY())
Incinerates the landscape at the currently selected clonk's position of the first player if it is flammable.
See also: IncinerateLandscape
Fulgen / Clonk Wiki, Juli 2016