openclonk/docs/sdk/script/fn/SetXDir.xml

39 lines
1.0 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>SetXDir</title>
<category>Objects</category>
<subcat>Movement</subcat>
<version>5.1 OC</version>
<syntax>
<rtype>bool</rtype>
<params>
<param>
<type>int</type>
<name>xdir</name>
<desc>Horizontal speed divided by precision.</desc>
</param>
<param>
<type>int</type>
<name>precision</name>
<desc>Precision. Default 10 if not specified.</desc>
<optional />
</param>
</params>
</syntax>
<desc>Sets the horizontal speed of the object.</desc>
<related>
<funclink>GetXDir</funclink>
<funclink>GetYDir</funclink>
<funclink>SetYDir</funclink>
<funclink>SetRDir</funclink>
<funclink>SetSpeed</funclink>
<funclink>SetR</funclink>
</related>
</func>
<author>jwk</author><date>2002-08</date>
</funcs>