SetDir

Category: Objects / Activity
Since engine version: 4.6.5.0 CP

Description

Sets the direction of an object.

Syntax

int SetDir (int iDir, object pObj);

Parameters

iDir:
New direction. Predefined values: DIR_Right() / DIR_Left()
pObj:
[opt] Object the direction of which you want to set. Can be 0 in local calls.

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 ActMap.txt), you can also use values other than just DIR_Right() and DIR_Left().
See also: DIR_Left, DIR_Right, GetDir, SetAction
jwk, August 2002