AbsX

Category: Objects / Position
Since engine version: 4.9.1.0 GWE

Description

If called from an object, this function returns the given X coordinate relative to the object's center. Otherwise, the original coordinate is returned

Syntax

int AbsX (int iX);

Parameter

iX:
X

Example

CreateObject(WIPF, AbsX(100), AbsY(500), -1);
Creates a wipf at position 100/500, even if called from an object script.
See also: AbsY, CreateObject, GetX, GetY
flgr, Januar 2002