GetActorY

From ZDoom Wiki

Jump to: navigation, search

int GetActorY (int tid)

Usage

This returns the Y coordinate of the actor, as an absolute value.

Parameters

  • tid
TID of the actor.

Return value

The Y coordinate of the actor, as an 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.

Personal tools