GetMaterialVal

Category: Get*Val
Since engine version: 1.0 OC

Description

Returns the property value of a material definition by its name in the material file.

Syntax

any GetMaterialVal(string entry, string section, int material, int entry_number);

Parameters

entry:
Name of the entry to be retrieved.
section:
[opt] Section of the entry to be retrieved. If not specified, all sections will be searched for an entry of the specified name.
material:
[opt] Number of the material of which to retrieve an entry.
entry_number:
[opt] Index of the value to be retrieved if an entry contains multiple values.

Example

GetMaterialVal("BlastFree", "Material", GetMaterial(20, 0))
Tests whether the landscape on the right of the calling clonk can be blasted away.
See also: GetMaterial, Material
PeterW, 2003-06