1<?xml version="1.0" encoding="UTF-8" standalone="yes"?> 2<!DOCTYPE funcs 3 SYSTEM '../../../clonk.dtd'> 4<?xml-stylesheet type="text/xsl" href="../../../clonk.xsl"?> 5<funcs> 6 <func> 7 <title>CastPXS</title> 8 <category>Landscape</category> 9 <version>5.1 OC</version> 10 <syntax> 11 <rtype>int</rtype> 12 <params> 13 <param> 14 <type>string</type> 15 <name>material_name</name> 16 <desc>Material name</desc> 17 </param> 18 <param> 19 <type>int</type> 20 <name>amount</name> 21 <desc>Amount</desc> 22 </param> 23 <param> 24 <type>int</type> 25 <name>level</name> 26 <desc>Strength.</desc> 27 </param> 28 <param> 29 <type>int</type> 30 <name>x</name> 31 <desc>X coordinate</desc> 32 </param> 33 <param> 34 <type>int</type> 35 <name>y</name> 36 <desc>Y coordinate</desc> 37 </param> 38 <param> 39 <type>int </type> 40 <name>angle</name> 41 <desc>Angle into which the material pixels are casted.</desc> 42 <optional /> 43 </param> 44 <param> 45 <type>int </type> 46 <name>angle_variance</name> 47 <desc>Maximum deviation from that angle. If not given the material pixels will all be casted into all directions.</desc> 48 <optional /> 49 </param> 50 </params> 51 </syntax> 52 <desc>Casts material pixels at the specified position. In local calls, the coordinates are an offset to the position of the calling object.</desc> 53 <examples> 54 <example> 55 <code>CastPXS("Lava", 6000, 30);</code> 56 <text>Casts 6,000 lava pixels at the position of the calling object.</text> 57 </example> 58 </examples> 59 <related><funclink>CastObjects</funclink></related> 60 </func> 61 <author>jwk</author><date>2002-04</date> 62 <author>Newton</author><date>2009-07</date> 63</funcs> 64