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 > GetCon</title>
<category > Objects</category>
<subcat > Status</subcat>
2011-06-30 10:52:55 +00:00
<version > 5.1 OC</version>
2010-08-22 13:13:17 +00:00
<syntax > <rtype > int</rtype> </syntax>
<desc > Returns the completion of an object. With buildings this is the completion of the construction site. With animals and plants this is the current growth (see StretchGrowth/OverSize in <emlink href= "definition/defcore.html" > DefCore</emlink> ).</desc>
2009-05-09 13:11:51 +00:00
<examples >
<example >
2010-08-22 13:13:17 +00:00
<code > <funclink > if</funclink> (<funclink > GetCursor</funclink> ()-> GetCon() > 50) <funclink > GetCursor</funclink> ()-> <funclink > DoCon</funclink> (-10);</code>
<text > Shrinks the selected clonk of the first player by 10% if he's not already at half size.</text>
2009-05-09 13:11:51 +00:00
</example>
</examples>
2010-08-22 13:13:17 +00:00
<related >
2009-05-09 13:11:51 +00:00
<funclink > SetCon</funclink>
<funclink > DoCon</funclink>
<funclink > OCF_Fullcon</funclink>
2010-08-22 13:13:17 +00:00
</related>
</func>
<author > Cucaracha</author> <date > 2002-05</date>
2009-05-09 13:11:51 +00:00
</funcs>