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 > AbsX</title>
<category > Objects</category>
<subcat > Position</subcat>
2018-03-24 22:13:08 +00:00
<version > 1.0 OC</version>
2010-08-22 13:13:17 +00:00
<syntax >
<rtype > int</rtype>
<params >
<param >
<type > int</type>
<name > x</name>
<desc > X</desc>
</param>
</params>
</syntax>
<desc > If called from an object, this function returns the given X coordinate relative to the object's center. Otherwise, the original coordinate is returned.</desc>
<examples >
<example >
2011-07-03 02:01:19 +00:00
<code > <funclink > CreateObject</funclink> (WIPF, AbsX(100), AbsY(500));</code>
2010-08-22 13:13:17 +00:00
<text > Creates a wipf at position 100/500, even if called from an object script.</text>
</example>
</examples>
<related >
<funclink > AbsY</funclink>
<funclink > GetX</funclink>
<funclink > GetY</funclink>
<funclink > CreateObject</funclink>
</related>
</func>
<author > flgr</author> <date > 2002-01</date>
2009-05-09 13:11:51 +00:00
</funcs>