GetYDir

Category: Objects / Movement
Since engine version: 4.6.5.0 CP

Description

Returns the vertical speed of pObj.

Syntax

int GetYDir (object pObj, int iPrecision);

Parameters

pObj:
Object of which to retrieve the current speed. Can be 0 in local calls.
iPrecision:
Precision with which to retrieve the speed. Default value is 10.

Remark

The function will return the speed in pixels per frame multiplied with iPrecision. If no precision is specified, the ten-fold speed value will be returned!
See also: GetX, GetXDir, GetY, SetPosition, SetXDir, SetYDir
Cucaracha, Mai 2002