GetActorY

From ZDoom Wiki
Jump to: navigation, search

fixed GetActorY (int tid)

Usage

This returns the Y coordinate of the actor. If tid is 0, the function uses the activator.

Parameters

  • tid: TID of the actor.

Return value

The Y coordinate of the actor, as a fixed point value world coordinate.

Examples

This is a semi-useful debug script

script 123 ENTER
{
    while (TRUE)
    {
        Print (f:GetActorX (0), s:", ", f:GetActorY (0));
        Delay (1);
    }
}

It creates a display of the player's in-game coordinates.

See also