MaterialName

Category: Landscape / Material
Since engine version: 1.0 OC

Description

Returns the internal (technical) name of a material.

Syntax

string MaterialName(int material_index);

Parameter

material_index:
Index of the material of which you want to know the name.

Example

GetCursor(0)->Message("You clonk is standing on %s.", MaterialName(GetCursor(0)->GetMaterial(0, 12)));
Displays on what type of material the first player's selected clonk is standing.
See also: GetMaterial, Material
Sven2, 2001-11