forked from Mirrors/openclonk
37 lines
1.1 KiB
XML
37 lines
1.1 KiB
XML
<?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>AbsY</title>
|
|
<category>Objects</category>
|
|
<subcat>Position</subcat>
|
|
<version>1.0 OC</version>
|
|
<syntax>
|
|
<rtype>int</rtype>
|
|
<params>
|
|
<param>
|
|
<type>int</type>
|
|
<name>y</name>
|
|
<desc>Y</desc>
|
|
</param>
|
|
</params>
|
|
</syntax>
|
|
<desc>If called from an object, this function returns the given Y coordinate relative to the object's center. Otherwise, the original coordinate is returned.</desc>
|
|
<examples>
|
|
<example>
|
|
<code><funclink>CreateObject</funclink>(Wipf, AbsX(100), AbsY(500));</code>
|
|
<text>Creates a wipf at position 100/500, even if called from an object script.</text>
|
|
</example>
|
|
</examples>
|
|
<related>
|
|
<funclink>AbsX</funclink>
|
|
<funclink>GetX</funclink>
|
|
<funclink>GetY</funclink>
|
|
<funclink>CreateObject</funclink>
|
|
</related>
|
|
</func>
|
|
<author>flgr</author><date>2002-01</date>
|
|
</funcs>
|