Clonk Developer Mode Documentation
Introduction
Contents
Search
Engine
Command Line
Game Data
Script
GetMaterialVal
Category:
Get*Val
Since engine version:
4.9.1.0 GWE
Description
Returns the property value of a material definition by its name in the
material file
.
Syntax
any
GetMaterialVal (
string
strEntry,
string
strSection,
int
iMaterial,
int
iEntryNr);
Parameters
strEntry:
Name of the entry to be retrieved
strSection:
[opt] Section of the entry to be retrieved. If 0, all sections will be searched for an entry of the specified name.
iMaterial:
[opt] Number of the material of which to retrieve an entry.
iEntryNr:
[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, Juni 2003
Clonk Developer Mode Documentation
Introduction
Contents
Search
Engine
Command Line
Game Data
Script