Command direction constant group

Description

Constants for movement directions (Command Direction). The directions can be queried with GetComDir and set with SetComDir.

Constants

Name Category Description Introduced in Value
COMD_None Objects/Movement Stop. 4.6.5.0 CP 0
COMD_Stop Objects/Movement Stop. COMD_None and COMD_Stop are identical. 4.6.5.0 CP 0
COMD_Up Objects/Movement Up. 4.6.5.0 CP 1
COMD_UpRight Objects/Movement Diagonally upwards to the right. 4.6.5.0 CP 2
COMD_Right Objects/Movement Right. 4.6.5.0 CP 3
COMD_DownRight Objects/Movement Diagonally downwards to the right. 4.6.5.0 CP 4
COMD_Down Objects/Movement Down. 4.6.5.0 CP 5
COMD_DownLeft Objects/Movement Diagonally downwards to the left. 4.6.5.0 CP 6
COMD_Left Objects/Movement Left. 4.6.5.0 CP 7
COMD_UpLeft Objects/Movement Diagonally upwards to the left. 4.6.5.0 CP 8

Examples

SetComDir(COMD_Up, FindObject(BLMP));
				
Changes the direction of flight of an airship upwards.
GetCursor(0)->GetComDir();
				
Determines in which direction the currently controlled clonk is moving.
SetComDir(COMD_None(), GetCursor());
				
Makes the currently selected clonk of the first player stop.

Changelog

Date Author Version Affecting Description
April 2002 Sven2 4.6.5.0 CP All Introduction COMD constant group.
June 2003 Sven2 4.6.5.0 CP COMD_Stop and COMD_None Additional constants have been added to the documentation.
Sven2, June 2003