Material

Category: Landscape / Material
Since engine version: 4.6.5.0 CP

Description

Returns the index of a material from its name. This index is used in most functions dealing with materials.

Syntax

int Material (string szMaterialName);

Parameter

szMaterialName:
Name of material

Example

InsertMaterial(Material("Gold"), 200, 100);
Inserts a pixel of gold at position 200/100.
See also: MaterialName
Sven2, November 2001