SetXDir

Category: Objects / Movement
Since engine version: 4.6.5.0 CP (extended in 4.9.1.0 GWE)

Description

Sets the horizontal speed of an object.

Syntax

bool SetXDir (int iXDir, object pObj, int iPrecision);

Parameters

iXDir:
Horizontal speed divided by iPrecision.
pObj:
[opt] Target object. Can be 0 in local calls.
iPrecision:
[opt] Precision. Default 10 if not specified or 0.
See also: GetXDir, GetYDir, SetR, SetRDir, SetYDir
jwk, August 2002