AbsX

Category: Objects / Position
Since engine version: 1.0 OC

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 x);

Parameter

x:
X

Example

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