Material

Category: Landscape / Material
Since engine version: 1.0 OC

Description

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

Syntax

int Material(string material_name);

Parameter

material_name:
Name of material

Example

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