2010-08-22 13:13:17 +00:00
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
< !DOCTYPE funcs
SYSTEM '../../../clonk.dtd'>
2009-05-09 13:11:51 +00:00
<?xml-stylesheet type="text/xsl" href="../../../clonk.xsl"?>
<funcs >
2010-08-22 13:13:17 +00:00
<func >
<title > AddVertex</title>
<category > Objects</category>
<subcat > Vertices</subcat>
2018-03-24 22:13:08 +00:00
<version > 1.0 OC</version>
2010-08-22 13:13:17 +00:00
<syntax >
2016-03-28 15:32:59 +00:00
<rtype > bool</rtype>
2010-08-22 13:13:17 +00:00
<params >
<param >
<type > int</type>
<name > x</name>
2016-03-28 15:32:59 +00:00
<desc > X coordinate, relative to the object center.</desc>
2010-08-22 13:13:17 +00:00
</param>
<param >
<type > int</type>
<name > y</name>
2016-03-28 15:32:59 +00:00
<desc > Y coordinate, relative to the object center.</desc>
2010-08-22 13:13:17 +00:00
</param>
</params>
</syntax>
<desc > Adds a new vertex to an object.</desc>
<remark > Notice: with any vertex updated caused by stretching or rotation of the object (e.g. building or growth) the vertices will be reset to their original defined position unless a special vertex mode is selected.</remark>
<examples >
<example >
2011-07-03 02:01:19 +00:00
<code > <funclink > GetHiRank</funclink> (0)-> AddVertex(0,50);</code>
2010-08-22 13:13:17 +00:00
<text > Makes the captain of the first player stick to the ground.</text>
</example>
</examples>
<related >
2016-03-28 15:35:47 +00:00
<funclink > InsertVertex</funclink>
2010-08-22 13:13:17 +00:00
<funclink > GetVertex</funclink>
<funclink > SetVertex</funclink>
<funclink > GetVertexNum</funclink>
<funclink > RemoveVertex</funclink>
</related>
</func>
<author > jwk</author> <date > 2002-04</date>
2009-05-09 13:11:51 +00:00
</funcs>