# SetComDir

Objects
Movement
4.6.5.0 CP
int
int com_dir Order direction. Must be COMD_None(), COMD_Down(), COMD_DownLeft(), COMD_DownRight(), COMD_Left(), COMD_Right(), COMD_Up(), COMD_UpLeft() or COMD_UpRight().
Sets the order direction of an object (see GetComDir).
var clonk = GetHiRank(0); clonk->SetComDir(COMD_None()); clonk->SetCommand("");
Tells the highest ranking clonk of player 1 to stop. Any current activity will be stopped.
var clonk = GetHiRank(0); clonk->SetAction("Dig"); clonk->SetComDir(COMD_DownRight());
Makes the highest ranking clonk of player 1 dig towards the lower right.
GetComDir
SetDir
jwk
2002-08