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 > SetDir</title>
<category > Objects</category>
<subcat > Activity</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>
<params >
<param >
<type > int</type>
<name > dir</name>
2011-07-20 14:22:07 +00:00
<desc > New direction. Predefined values: <funclink > DIR_Right</funclink> / <funclink > DIR_Left</funclink> </desc>
2010-08-22 13:13:17 +00:00
</param>
</params>
</syntax>
2013-11-30 04:45:31 +00:00
<desc > Sets the direction of the object. If the object defines an action named "Turn", this action is executed after the call of this function.</desc>
2010-08-22 13:13:17 +00:00
<remark > SetDir affects the visual direction of an active object; to modify object motion use <funclink > SetComDir</funclink> .</remark>
2011-07-20 14:22:07 +00:00
<remark > If the object's action has more than two directions (see <emlink href= "definition/actmap.html" > the ActMap</emlink> ), you can also use values other than just <funclink > DIR_Right</funclink> and <funclink > DIR_Left</funclink> .</remark>
2010-08-22 13:13:17 +00:00
<related >
<funclink > GetDir</funclink>
<funclink > DIR_Left</funclink>
<funclink > DIR_Right</funclink>
<funclink > SetAction</funclink>
</related>
</func>
2013-11-30 04:45:31 +00:00
<author > Newton</author> <date > 2013-11</date>
2009-05-09 13:11:51 +00:00
</funcs>