GetGravity

Category: Global
Since engine version: 4.6.5.0 CP

Description

Returns the current gravity in percent.

Syntax

int GetGravity ();

Example

for (var obj in FindObjects(Find_Distance(100)))
  SetYDir(GetYDir(obj, 500) - GetGravity(), obj, 500);
Nullifies gravity in an area of radius 100 pixels if called every frame.
See also: SetGravity
jwk, August 2002