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 >
<func >
<title > SetComDir</title>
2010-08-22 13:13:17 +00:00
<category > Objects</category>
<subcat > Movement</subcat>
2011-06-30 10:52:55 +00:00
<version > 5.1 OC</version>
2009-05-09 13:11:51 +00:00
<syntax >
<rtype > int</rtype>
<params >
2010-08-22 13:13:17 +00:00
<param >
<type > int</type>
<name > com_dir</name>
2011-07-06 16:13:39 +00:00
<desc > Order direction. Must be <funclink > COMD_None</funclink> , <funclink > COMD_Stop</funclink> , <funclink > COMD_Down</funclink> , <funclink > COMD_DownLeft</funclink> , <funclink > COMD_DownRight</funclink> , <funclink > COMD_Left</funclink> , <funclink > COMD_Right</funclink> , <funclink > COMD_Up</funclink> , <funclink > COMD_UpLeft</funclink> or <funclink > COMD_UpRight</funclink> .</desc>
2010-08-22 13:13:17 +00:00
</param>
2009-05-09 13:11:51 +00:00
</params>
</syntax>
2011-07-06 16:13:39 +00:00
<desc > Sets the command direction of an object (see <funclink > GetComDir</funclink> ).</desc>
2009-05-09 13:11:51 +00:00
<examples >
<example >
2010-08-22 13:13:17 +00:00
<code > var clonk = <funclink > GetHiRank</funclink> (0);
2011-07-06 16:13:39 +00:00
clonk-> SetComDir(<funclink > COMD_None</funclink> );
2010-08-22 13:13:17 +00:00
clonk-> <funclink > SetCommand</funclink> (" " );</code>
2011-07-06 16:13:39 +00:00
<text > Tells the highest ranking clonk of the first player to stop. Any current activity will be stopped.</text>
2009-05-09 13:11:51 +00:00
</example>
</examples>
<related >
2011-07-06 16:13:39 +00:00
<emlink href= "definition/procedures.html" > Procedure</emlink>
2009-05-09 13:11:51 +00:00
<funclink > GetComDir</funclink>
<funclink > SetDir</funclink>
2011-07-06 16:13:39 +00:00
<funclink > GetProcedure</funclink>
2009-05-09 13:11:51 +00:00
</related>
</func>
2010-08-22 13:13:17 +00:00
<author > jwk</author> <date > 2002-08</date>
2009-05-09 13:11:51 +00:00
</funcs>