SetDir

Category: Objects / Activity
Since engine version: 5.1 OC

Description

Sets the direction of the object.

Syntax

int SetDir(int dir);

Parameter

dir:
New direction. Predefined values: DIR_Right / DIR_Left

Remarks

SetDir affects the visual direction of an active object; to modify object motion use SetComDir.
If the object's action has more than two directions (see the ActMap), you can also use values other than just DIR_Right and DIR_Left.
See also: DIR_Left, DIR_Right, GetDir, SetAction
jwk, 2002-08