MaterialName

Category: Landscape / Material
Since engine version: 4.9.1.0 GWE

Description

Returns the internal (technical) name of a material.

Syntax

string MaterialName (int iMat);

Parameter

iMat:
Index of the material of which you want to know the name

Example

Message("Dein Clonk steht auf %s.", 0, MaterialName(GetMaterial(GetX(GetCursor(0)), GetY(GetCursor(0))+12)));
Displays on what type of material the first player's selected clonk is standing.
See also: GetMaterial, Material
Sven2, November 2001