1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!DOCTYPE funcs
SYSTEM '../../../clonk.dtd'>
<?xml-stylesheet type="text/xsl" href="../../../clonk.xsl"?>
<funcs>
<func>
<title>MaterialName</title>
<category>Landscape</category>
<subcat>Material</subcat>
<version>5.1 OC</version>
<syntax>
<rtype>string</rtype>
<params>
<param>
<type>int</type>
<name>material_index</name>
<desc>Index of the material of which you want to know the name.</desc>
</param>
</params>
</syntax>
<desc>Returns the internal (technical) name of a material.</desc>
<examples>
<example>
<code><funclink>GetCursor</funclink>(0)-><funclink>Message</funclink>("You clonk is standing on %s.", MaterialName(<funclink>GetCursor</funclink>(0)-><funclink>GetMaterial</funclink>(0, 12)));</code>
<text>Displays on what type of material the first player's selected clonk is standing.</text>
</example>
</examples>
<related>
<funclink>Material</funclink>
<funclink>GetMaterial</funclink>
</related>
</func>
<author>Sven2</author><date>2001-11</date>
</funcs>
|