Category: Objects
/ Movement
Since engine version: 1.0 OC
SetComDir
Description
Sets the command direction of an object (see GetComDir).
Syntax
int SetComDir(int com_dir);
Parameter
- com_dir:
- Order direction. Must be COMD_None, COMD_Stop, COMD_Down, COMD_DownLeft, COMD_DownRight, COMD_Left, COMD_Right, COMD_Up, COMD_UpLeft or COMD_UpRight.
Example
var clonk = GetHiRank(0); clonk->SetComDir(COMD_None); clonk->SetCommand("");
Tells the highest ranking clonk of the first player to stop. Any current activity will be stopped.